Merge pull request #27544 from inventshah:fix-detect-and-compute-py-type

fix: mark Feature2D.detectAndCompute mask as optional in Python type stubs
This commit is contained in:
Alexander Smorkalov 2025-07-15 15:07:01 +03:00 committed by GitHub
commit f734de08ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -340,6 +340,7 @@ NODES_TO_REFINE = {
SymbolName(("cv", ), (), "resize"): make_optional_arg("dsize"),
SymbolName(("cv", ), (), "calcHist"): make_optional_arg("mask"),
SymbolName(("cv", ), (), "floodFill"): make_optional_arg("mask"),
SymbolName(("cv", ), ("Feature2D", ), "detectAndCompute"): make_optional_arg("mask"),
SymbolName(("cv", ), (), "imread"): make_optional_none_return,
SymbolName(("cv", ), (), "imdecode"): make_optional_none_return,
}