mirror of
https://github.com/gumyr/build123d.git
synced 2026-03-07 14:22:03 -08:00
Partial type hints fix
This commit is contained in:
parent
6b8409ab33
commit
4ffec78728
1 changed files with 4 additions and 1 deletions
|
|
@ -1705,9 +1705,12 @@ class Location:
|
|||
@overload
|
||||
def __mul__(self, other: Iterable[Location]) -> list[Location]: ...
|
||||
|
||||
@overload
|
||||
def __mul__(self, other: Iterable[Shape]) -> list[Shape]: ...
|
||||
|
||||
def __mul__(
|
||||
self, other: Shape | Location | Iterable[Location | Shape | Iterable]
|
||||
) -> Shape | Location | list[Location | Shape | list]:
|
||||
) -> Shape | Location | list[Location] | list[Shape]:
|
||||
"""Combine locations"""
|
||||
if self.wrapped is None:
|
||||
raise ValueError("Cannot move a shape at an empty location")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue