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

fix: mark floodFill mask as optional in Python typing stubs
pull/25723/head
Alexander Smorkalov 5 months ago committed by GitHub
commit cbf3b1187d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      modules/python/src2/typing_stubs_generation/api_refinement.py

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

Loading…
Cancel
Save