Skip to content

Commit 756ceb6

Browse files
authored
Re-enable type checking after mypy fixed bug 14890 (#985)
1 parent efc77a4 commit 756ceb6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/neo4j/_spatial/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ def y(self) -> float: ...
5858
def z(self) -> float: ...
5959

6060
def __new__(cls, iterable: t.Iterable[float]) -> Point:
61-
# mypy issue https://github.com/python/mypy/issues/14890
62-
return tuple.__new__( # type: ignore[type-var]
63-
cls, map(float, iterable)
64-
)
61+
return tuple.__new__(cls, map(float, iterable))
6562

6663
def __repr__(self) -> str:
6764
return "POINT(%s)" % " ".join(map(str, self))

src/neo4j/time/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,7 @@ def __new__(
414414
if not MIN_INT64 <= avg_total_seconds <= MAX_INT64:
415415
raise ValueError("Duration value out of range: %r",
416416
tuple.__repr__((mo, d, s, ns)))
417-
# mypy issue https://github.com/python/mypy/issues/14890
418-
return tuple.__new__(cls, (mo, d, s, ns)) # type: ignore[type-var]
417+
return tuple.__new__(cls, (mo, d, s, ns))
419418

420419
def __bool__(self) -> bool:
421420
"""Falsy if all primary instance attributes are."""

0 commit comments

Comments
 (0)