Skip to content

Commit 148564e

Browse files
committed
dev: use ty instead of T as alias for typing
T is commonly used as TypeVar, so let's just not use it as alias for the typing module.
1 parent 8e3497a commit 148564e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

argparse_subdec/subdec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import argparse
77
import collections.abc as C
8-
import typing as T
8+
import typing as ty
99

1010

1111
class SubDec:
@@ -118,7 +118,7 @@ def decorator(fn):
118118
self.__decorators_cache[name] = decorator_wrapper
119119
return decorator_wrapper
120120

121-
def __get_command(self, fn: T.Callable):
121+
def __get_command(self, fn: ty.Callable):
122122
if fn not in self.__commands:
123123
self.__commands[fn] = {
124124
'name': None,
@@ -128,7 +128,7 @@ def __get_command(self, fn: T.Callable):
128128
}
129129
return self.__commands[fn]
130130

131-
def __create_parser(self, cmd: dict, subparsers: T.Any):
131+
def __create_parser(self, cmd: dict, subparsers: ty.Any):
132132
name = cmd['name']
133133
if not name:
134134
name = cmd['fn'].__name__

0 commit comments

Comments
 (0)