[Feature] Remove Python 3.9 (#7235)

* remove python 3.9 support and code

* black

* more cli lint

* more linting

* more lint

* fix for tests

* docstring grammar police

* add lock to to build function to avoid async import race conditions

* grammar police

* lots more linting

* relock
This commit is contained in:
Danglewood
2025-10-10 16:16:16 -07:00
committed by GitHub
parent 797b6b7445
commit 9f0d592839
1152 changed files with 76711 additions and 1023236 deletions

View File

@@ -1,7 +1,5 @@
"""Platform controller factory to create a platform controller."""
from typing import Dict, List, Union
from openbb_cli.argparse_translator.argparse_class_processor import (
ArgparseClassProcessor,
)
@@ -30,11 +28,11 @@ class PlatformControllerFactory:
"""Create the platform controller."""
ClassName = self.controller_name
Parents = (PlatformController,)
Attributes: Dict[str, Union[bool, List[str]]] = {"CHOICES_GENERATION": True}
Attributes: dict[str, bool | list[str]] = {"CHOICES_GENERATION": True}
# Menu and Command choices generation
choices_menus: List[str] = []
choices_commands: List[str] = []
choices_menus: list[str] = []
choices_commands: list[str] = []
translators = self._translated_target.translators
paths = self._translated_target.paths
# menus