Skip to content

Commit 55bf365

Browse files
asottilesterliakov
andauthored
Update mypy/suggestions.py
Co-authored-by: Stanislav Terliakov <[email protected]>
1 parent 55ef599 commit 55bf365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/suggestions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _arg_accepts_function(typ: ProperType) -> bool:
238238
# Protocol with __call__
239239
isinstance(typ, Instance)
240240
and typ.type.is_protocol
241-
and isinstance(typ.type.get_method("__call__"), FuncDef)
241+
and typ.type.get_method("__call__") is not None
242242
)
243243

244244

0 commit comments

Comments
 (0)