mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
Fix IfcOpenShell-Python on Python 3.10
Elipsis is not allowed for generic typing
This commit is contained in:
@@ -44,7 +44,7 @@ if TYPE_CHECKING:
|
|||||||
VectorType = Union[Sequence[float], Vector, np.ndarray]
|
VectorType = Union[Sequence[float], Vector, np.ndarray]
|
||||||
else:
|
else:
|
||||||
# Ensure it's exportable, so other modules can reuse it for typing.
|
# Ensure it's exportable, so other modules can reuse it for typing.
|
||||||
VectorType = ...
|
VectorType = Any
|
||||||
|
|
||||||
SequenceOfVectors = Union[Sequence[VectorType], np.ndarray]
|
SequenceOfVectors = Union[Sequence[VectorType], np.ndarray]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user