Merge pull request #26826 from devatbosch:4.x

Workaround solution for isuue #26818
This commit is contained in:
Alexander Smorkalov 2025-01-28 08:01:41 +03:00 committed by GitHub
commit 0049cde1f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,8 +54,12 @@ _PREDEFINED_TYPES = (
doc="Required length is 2"),
AliasTypeNode.sequence_("Size2f", PrimitiveTypeNode.float_(),
doc="Required length is 2"),
AliasTypeNode.sequence_("Scalar", PrimitiveTypeNode.float_(),
doc="Required length is at most 4"),
AliasTypeNode.union_(
"Scalar",
items=(SequenceTypeNode("Scalar", PrimitiveTypeNode.float_()),
PrimitiveTypeNode.float_()),
doc="Max sequence length is at most 4"
),
AliasTypeNode.sequence_("Point", PrimitiveTypeNode.int_(),
doc="Required length is 2"),
AliasTypeNode.ref_("Point2i", "Point"),