Merge pull request #25720 from VadimLevin:dev/vlevin/floodFill-optional-mask

fix: mark floodFill mask as optional in Python typing stubs
This commit is contained in:
Alexander Smorkalov 2024-06-06 13:36:00 +03:00 committed by GitHub
commit cbf3b1187d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,6 +325,7 @@ def _find_argument_index(arguments: Sequence[FunctionNode.Arg],
NODES_TO_REFINE = {
SymbolName(("cv", ), (), "resize"): make_optional_arg("dsize"),
SymbolName(("cv", ), (), "calcHist"): make_optional_arg("mask"),
SymbolName(("cv", ), (), "floodFill"): make_optional_arg("mask"),
}
ERROR_CLASS_PROPERTIES = (