Skip to content

Commit

Permalink
Add typing
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVanEldik committed Oct 23, 2024
1 parent 31dbb39 commit ae0afc3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__
htmlcov
.coverage
.tox
.idea
*.egg-info
build/*
dist/*
Expand Down
2 changes: 1 addition & 1 deletion logtail/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
try:
import queue
except ImportError:
import Queue as queue
import Queue as queue # type: ignore[import-not-found, no-redef]
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
files = logtail
Empty file added py.typed
Empty file.
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ coverage>=3.7.1
httpretty>=0.9.4
nose-py3
mock>=1.0.1
mypy>=1.13.0
types-setuptools>=75.2.0.20241019
msgpack-types>=0.5.0
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ deps =
-rrequirements.txt
commands =
nosetests --with-coverage --cover-branches --cover-package=logtail
mypy logtail

0 comments on commit ae0afc3

Please sign in to comment.