Skip to content

Commit f645e72

Browse files
author
Zach Banks
committed
FIX: Fix type annotation for mypy
1 parent b3a7c5f commit f645e72

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

databento/common/dbnstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def __init__(
13311331
count: int | None = None,
13321332
) -> None:
13331333
self._reader = reader
1334-
self._dtype = np.dtype(dtype)
1334+
self._dtype: np.typing.DTypeLike = np.dtype(dtype)
13351335
self._offset = offset
13361336
self._count = count
13371337
self._close_on_next = False

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ no_strict_optional = true
7373
warn_no_return = true
7474
warn_unused_configs = true
7575
warn_unused_ignores = true
76+
plugins = ["numpy.typing.mypy_plugin"]
7677

7778
[tool.pytest.ini_options]
7879
testpaths = ["tests"]

scripts/lint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env bash
2-
echo $(mypy --version)
3-
echo Running mypy...
4-
poetry run mypy databento examples tests
2+
echo "Running $(poetry run mypy --version)..."
3+
poetry run mypy .

0 commit comments

Comments
 (0)