未验证 提交 de8e6abd 编写于 作者: A Alexander Smorkalov 提交者: GitHub

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

fix: typing stubs overload presence check
...@@ -535,7 +535,7 @@ def check_overload_presence(node: Union[NamespaceNode, ClassNode]) -> bool: ...@@ -535,7 +535,7 @@ def check_overload_presence(node: Union[NamespaceNode, ClassNode]) -> bool:
otherwise. otherwise.
""" """
for func_node in node.functions.values(): for func_node in node.functions.values():
if len(func_node.overloads): if len(func_node.overloads) > 1:
return True return True
return False return False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册