mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-16 06:11:57 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user