1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #23954 from VadimLevin:dev/vlevin/matrix-type-constants-stubs

feat: add matrix type stubs generation
This commit is contained in:
Alexander Smorkalov
2023-07-10 18:48:01 +03:00
committed by GitHub
2 changed files with 30 additions and 4 deletions
@@ -103,9 +103,6 @@ def _generate_typing_stubs(root: NamespaceNode, output_path: Path) -> None:
_write_reexported_symbols_section(root, output_stream)
# Write constants section, because constants don't impose any dependencies
_generate_section_stub(StubSection("# Constants", ConstantNode), root,
output_stream, 0)
# NOTE: Enumerations require special handling, because all enumeration
# constants are exposed as module attributes
has_enums = _generate_section_stub(StubSection("# Enumerations", EnumerationNode),