mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-12-01 13:44:16 +00:00
pylint
This commit is contained in:
@@ -67,7 +67,7 @@ class CommandValidator:
|
||||
|
||||
@staticmethod
|
||||
def is_annotated_dc(annotation) -> bool:
|
||||
return type(annotation) is _AnnotatedAlias and hasattr(
|
||||
return isinstance(annotation, _AnnotatedAlias) and hasattr(
|
||||
annotation.__args__[0], "__dataclass_fields__"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user