Skip to content

Commit 59a5aee

Browse files
committed
clarify comment
1 parent aa5df74 commit 59a5aee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/checkmember.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ def analyze_type_callable_member_access(name: str, typ: FunctionLike, mx: Member
378378
# The following is a hack. mypy often represents types as CallableType, where the signature of
379379
# CallableType is determined by __new__ or __init__ of the type (this logic is in
380380
# type_object_type). Then if we ever need the TypeInfo or an instance of the type, we fish
381-
# around for the return type in CallableType.type_object. Unfortunately, this is incorrect if
382-
# __new__ returns an unrelated type, but we can kind of salvage things by fishing around in
381+
# around for the return type, e.g. in CallableType.type_object. Unfortunately, this is incorrect
382+
# if __new__ returns an unrelated type, but we can kind of salvage things here using
383383
# CallableType.bound_args
384384
self_type: Type = typ
385385
if len(item.bound_args) == 1 and item.bound_args[0]:

0 commit comments

Comments
 (0)