Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from Parquery/mristin/added-py.typed-to-comply-…
Browse files Browse the repository at this point in the history
…with-mypy

added py.typed to comply with mypy
  • Loading branch information
mristin authored Aug 3, 2018
2 parents fdd2070 + b075a53 commit 743f3a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions persizmq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def add_message(self, msg: Optional[bytes]) -> None:
self.__first = msg

finally:
if tmp_pth is not None and tmp_pth.exists():
tmp_pth.unlink()
if tmp_pth is not None and tmp_pth.exists(): # type: ignore
tmp_pth.unlink() # type: ignore


class PersistentLatestStorage:
Expand Down
1 change: 1 addition & 0 deletions persizmq/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP 561. The mypy package uses inline types.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@
'dev': ['mypy==0.600', 'pylint==1.8.4', 'yapf==0.20.2', 'tox>=3.0.0'],
'test': ['tox>=3.0.0']
},
py_modules=['persizmq'])
py_modules=['persizmq'],
package_data={"persizmq": ["py.typed"]})

0 comments on commit 743f3a1

Please sign in to comment.