Skip to content

Commit

Permalink
feat: Make tinydb PEP 561 compatible
Browse files Browse the repository at this point in the history
[PEP 561](https://www.python.org/dev/peps/pep-0561/) defines a way to
share type hints for Python packages.

As `tinydb` already provides type annotations for their modules, add
last 2 pieces: `py.typed` file & PyPI classifier to allow `mypy` and
other static analyzers use TinyDB type annotations.
  • Loading branch information
playpauseandstop authored and msiemens committed Nov 14, 2020
1 parent e0154f8 commit 77fa426
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"Typing :: Typed",
]

packages = [
Expand Down
Empty file added tinydb/py.typed
Empty file.

0 comments on commit 77fa426

Please sign in to comment.