Skip to content

Commit c06ee74

Browse files
committed
Add missing typehint
1 parent 073217d commit c06ee74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def prepare_method_signature(self, func: FuncDef, info: TypeInfo, has_self_type:
972972
elif isinstance(functype, CallableType):
973973
self_type = get_proper_type(functype.arg_types[0])
974974
if isinstance(self_type, AnyType):
975-
leading_type = info.self_type if info.self_type else fill_typevars(info)
975+
leading_type: Type = info.self_type if info.self_type else fill_typevars(info)
976976
if func.is_class or func.name == "__new__":
977977
leading_type = self.class_type(leading_type)
978978
func.type = replace_implicit_first_type(functype, leading_type)

0 commit comments

Comments
 (0)