typedparser 0.32.2__tar.gz → 0.32.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {typedparser-0.32.2 → typedparser-0.32.4}/PKG-INFO +1 -1
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/__init__.py +1 -1
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/_typedattr.py +1 -1
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/_typedparser.py +2 -2
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/objects.py +2 -2
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/PKG-INFO +1 -1
- {typedparser-0.32.2 → typedparser-0.32.4}/LICENSE +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/README.md +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/pyproject.toml +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/requirements.txt +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/setup.cfg +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/custom_format.py +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser/funcs.py +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/SOURCES.txt +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/dependency_links.txt +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/requires.txt +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/top_level.txt +0 -0
- {typedparser-0.32.2 → typedparser-0.32.4}/src/typedparser.egg-info/zip-safe +0 -0
|
@@ -40,7 +40,7 @@ class TypedParser:
|
|
|
40
40
|
):
|
|
41
41
|
return cls(parser, typed_args_class, strict=strict)
|
|
42
42
|
|
|
43
|
-
def parse_args(self, args=None, namespace=None):
|
|
43
|
+
def parse_args(self, args=None, namespace=None) -> Any:
|
|
44
44
|
args = self.parser.parse_args(args, namespace)
|
|
45
45
|
typed_args = self._convert_args_to_typed_args(args)
|
|
46
46
|
return typed_args
|
|
@@ -57,7 +57,7 @@ class TypedParser:
|
|
|
57
57
|
|
|
58
58
|
def add_argument(
|
|
59
59
|
*name_or_flags: str, shortcut: Optional[str] = None, positional: bool = False, **kwargs
|
|
60
|
-
):
|
|
60
|
+
) -> Any:
|
|
61
61
|
"""
|
|
62
62
|
Interface matches ArgumentParser.add_argument:
|
|
63
63
|
https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.add_argument
|
|
@@ -349,7 +349,7 @@ def big_obj_to_short_str(d: Any) -> str:
|
|
|
349
349
|
return f"Object of type {class_name}"
|
|
350
350
|
|
|
351
351
|
|
|
352
|
-
def invert_dict_of_dict(dict_of_dict: dict[str, dict[str,
|
|
352
|
+
def invert_dict_of_dict(dict_of_dict: dict[str, dict[str, Any]]) -> dict[str, dict[str, Any]]:
|
|
353
353
|
"""
|
|
354
354
|
Invert a dictionary of dictionaries. Useful for creating dataframes.
|
|
355
355
|
|
|
@@ -369,7 +369,7 @@ def invert_dict_of_dict(dict_of_dict: dict[str, dict[str, any]]) -> dict[str, di
|
|
|
369
369
|
return regular_dict
|
|
370
370
|
|
|
371
371
|
|
|
372
|
-
def invert_list_of_dict(list_of_dict: list[dict[str,
|
|
372
|
+
def invert_list_of_dict(list_of_dict: list[dict[str, Any]]) -> dict[str, list[Any]]:
|
|
373
373
|
"""
|
|
374
374
|
Invert a list of dictionaries. Useful for creating dataframes.
|
|
375
375
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|