Skip to content

Commit a9f9315

Browse files
committed
formatting
1 parent 96182f8 commit a9f9315

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/tap/tap.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def parse_args(
483483
return self
484484

485485
@classmethod
486-
def _get_from_self_and_super( cls, extract_func: Callable[[type], dict]) -> Union[Dict[str, Any], Dict]:
486+
def _get_from_self_and_super(cls, extract_func: Callable[[type], dict]) -> Union[Dict[str, Any], Dict]:
487487
"""Returns a dictionary mapping variable names to values.
488488
489489
Variables and values are extracted from classes using key starting
@@ -537,9 +537,7 @@ def _get_class_dict(self) -> Dict[str, Any]:
537537

538538
def _get_annotations(self) -> Dict[str, Any]:
539539
"""Returns a dictionary mapping variable names to their type annotations."""
540-
return self._get_from_self_and_super(
541-
extract_func=lambda super_class: dict(get_type_hints(super_class))
542-
)
540+
return self._get_from_self_and_super(extract_func=lambda super_class: dict(get_type_hints(super_class)))
543541

544542
def _get_class_variables(self) -> dict:
545543
"""Returns a dictionary mapping class variables names to their additional information."""
@@ -586,7 +584,7 @@ def as_dict(self) -> Dict[str, Any]:
586584

587585
self_dict = self.__dict__
588586
class_dict = self._get_from_self_and_super(
589-
extract_func=lambda super_class: dict(getattr(super_class, "__dict__", dict())),
587+
extract_func=lambda super_class: dict(getattr(super_class, "__dict__", dict()))
590588
)
591589
class_dict = {key: val for key, val in class_dict.items() if key not in self_dict}
592590
stored_dict = {**self_dict, **class_dict}

0 commit comments

Comments
 (0)