mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
feat: manual refinement for Python API definition
Mark `resize` and `calcHist` arguments as optional regardless of their C++ API optionality
This commit is contained in:
@@ -120,7 +120,11 @@ if sys.version_info >= (3, 6):
|
||||
@failures_wrapper.wrap_exceptions_as_warnings(ret_type_on_failure=ClassNodeStub)
|
||||
def find_class_node(self, class_info, namespaces):
|
||||
# type: (Any, Sequence[str]) -> ClassNode
|
||||
return find_class_node(self.cv_root, class_info.full_original_name, namespaces)
|
||||
return find_class_node(
|
||||
self.cv_root,
|
||||
SymbolName.parse(class_info.full_original_name, namespaces),
|
||||
create_missing_namespaces=True
|
||||
)
|
||||
|
||||
@failures_wrapper.wrap_exceptions_as_warnings(ret_type_on_failure=ClassNodeStub)
|
||||
def create_class_node(self, class_info, namespaces):
|
||||
|
||||
Reference in New Issue
Block a user