We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e3497a commit 148564eCopy full SHA for 148564e
1 file changed
argparse_subdec/subdec.py
@@ -5,7 +5,7 @@
5
6
import argparse
7
import collections.abc as C
8
-import typing as T
+import typing as ty
9
10
11
class SubDec:
@@ -118,7 +118,7 @@ def decorator(fn):
118
self.__decorators_cache[name] = decorator_wrapper
119
return decorator_wrapper
120
121
- def __get_command(self, fn: T.Callable):
+ def __get_command(self, fn: ty.Callable):
122
if fn not in self.__commands:
123
self.__commands[fn] = {
124
'name': None,
@@ -128,7 +128,7 @@ def __get_command(self, fn: T.Callable):
128
}
129
return self.__commands[fn]
130
131
- def __create_parser(self, cmd: dict, subparsers: T.Any):
+ def __create_parser(self, cmd: dict, subparsers: ty.Any):
132
name = cmd['name']
133
if not name:
134
name = cmd['fn'].__name__
0 commit comments