fix: typing stubs overload presence check

This commit is contained in:
Vadim Levin 2023-07-10 14:30:44 +03:00
parent fdc0c12b7f
commit 8097bdc2f4

View File

@ -535,7 +535,7 @@ def check_overload_presence(node: Union[NamespaceNode, ClassNode]) -> bool:
otherwise.
"""
for func_node in node.functions.values():
if len(func_node.overloads):
if len(func_node.overloads) > 1:
return True
return False