Skip to content

Commit

Permalink
Merge pull request #367 from Yeicor/fix-vector-add-and-sub-types
Browse files Browse the repository at this point in the history
Avoid type warnings when adding tuples to vectors
  • Loading branch information
gumyr authored Nov 5, 2023
2 parents 6f9a5ef + acd6185 commit 630c7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build123d/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def sub(self, vec: VectorLike) -> Vector:

return result

def __sub__(self, vec: Vector) -> Vector:
def __sub__(self, vec: VectorLike) -> Vector:
"""Mathematical subtraction operator -"""
return self.sub(vec)

Expand All @@ -252,7 +252,7 @@ def add(self, vec: VectorLike) -> Vector:

return result

def __add__(self, vec: Vector) -> Vector:
def __add__(self, vec: VectorLike) -> Vector:
"""Mathematical addition operator +"""
return self.add(vec)

Expand Down

0 comments on commit 630c7c6

Please sign in to comment.