fix: typing stubs overload presence check

pull/23955/head
Vadim Levin 2 years ago
parent fdc0c12b7f
commit 8097bdc2f4
  1. 2
      modules/python/src2/typing_stubs_generation/generation.py

@ -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

Loading…
Cancel
Save