Skip to content

Commit 6f95a56

Browse files
authored
Merge pull request #14 from vertti/mypy-all
Make mypy happy with explicit exports
2 parents 8d1f261 + 22577d2 commit 6f95a56

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,18 @@ poetry shell
156156
pytest
157157
```
158158

159-
To enable linting on each commit, run `pre-commit install`. After that, your every commit will be checked with `isort`, `black` and `flake8`.
159+
To enable linting on each commit, run `pre-commit install`. After that, your every commit will be checked with `ruff` and `mypy`.
160160

161161
## License
162162

163163
MIT
164164

165165
## Changelog
166166

167+
### 0.9.2
168+
169+
- Add explicit `__all__` export for functions to make Mypy happy
170+
167171
### 0.9.0
168172

169173
- Add marker (`py.typed`) to tell Mypy that the library has type annotations

daffy/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
the input and output on runtime.
77
"""
88

9-
__version__ = "0.5.0"
9+
from .decorators import df_in, df_log, df_out
1010

11-
from .decorators import df_in # noqa
12-
from .decorators import df_log # noqa
13-
from .decorators import df_out # noqa
11+
__all__ = ["df_in", "df_out", "df_log"]

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "daffy"
3-
version = "0.9.0"
3+
version = "0.9.2"
44
description = "Function decorators for Pandas and Polars Dataframe column name and data type validation"
55
authors = [
66
{ name="Janne Sinivirta", email="[email protected]" },

0 commit comments

Comments
 (0)