Skip to content

Commit

Permalink
FIX: Fix type annotation for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Banks committed Dec 9, 2024
1 parent b3a7c5f commit f645e72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion databento/common/dbnstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ def __init__(
count: int | None = None,
) -> None:
self._reader = reader
self._dtype = np.dtype(dtype)
self._dtype: np.typing.DTypeLike = np.dtype(dtype)
self._offset = offset
self._count = count
self._close_on_next = False
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ no_strict_optional = true
warn_no_return = true
warn_unused_configs = true
warn_unused_ignores = true
plugins = ["numpy.typing.mypy_plugin"]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
5 changes: 2 additions & 3 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
echo $(mypy --version)
echo Running mypy...
poetry run mypy databento examples tests
echo "Running $(poetry run mypy --version)..."
poetry run mypy .

0 comments on commit f645e72

Please sign in to comment.