Skip to content

Commit 25e0c13

Browse files
committed
Fix typing
1 parent 83fa0ba commit 25e0c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/fastparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,9 @@ def validate_type_param(self, type_param: ast_TypeVar) -> None:
11961196
def translate_type_params(self, type_params: list[Any]) -> list[TypeParam]:
11971197
explicit_type_params = []
11981198
for p in type_params:
1199-
bound = None
1199+
bound: Type | None = None
12001200
values: list[Type] = []
1201-
default = None
1201+
default: Type | None = None
12021202
if sys.version_info >= (3, 13):
12031203
default = TypeConverter(self.errors, line=p.lineno).visit(p.default_value)
12041204
if isinstance(p, ast_ParamSpec): # type: ignore[misc]

0 commit comments

Comments
 (0)