1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-27 22:33:03 +04:00

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