Merge pull request #23955 from VadimLevin:dev/vlevin/overload-presence-check-fix

fix: typing stubs overload presence check
pull/23963/head
Alexander Smorkalov 2 years ago committed by GitHub
commit de8e6abd1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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