Skip to content

Commit b213c70

Browse files
authored
fix: pre-commit issues (#3603)
1 parent 2da3cae commit b213c70

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

py/torch_tensorrt/_features.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
_WINDOWS_CROSS_COMPILE,
6262
)
6363

64+
T = TypeVar("T")
65+
6466

6567
def _enabled_features_str() -> str:
6668
enabled = lambda x: "ENABLED" if x else "DISABLED"
@@ -130,9 +132,6 @@ def not_implemented(*args: List[Any], **kwargs: Dict[str, Any]) -> Any:
130132
return wrapper
131133

132134

133-
T = TypeVar("T")
134-
135-
136135
def for_all_methods(
137136
decorator: Callable[..., Any], exclude: Optional[List[str]] = None
138137
) -> Callable[..., Any]:

py/torch_tensorrt/dynamo/debug/_supports_debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any, Callable, Type, TypeVar
22

3-
T = TypeVar("T")
43
F = TypeVar("F", bound=Callable[..., Any])
4+
T = TypeVar("T")
55

66
_DEBUG_ENABLED_FUNCS = []
77
_DEBUG_ENABLED_CLS = []

0 commit comments

Comments
 (0)