Skip to content

Commit ae0afc3

Browse files
committed
Add typing
1 parent 31dbb39 commit ae0afc3

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ __pycache__
55
htmlcov
66
.coverage
77
.tox
8+
.idea
89
*.egg-info
910
build/*
1011
dist/*

logtail/compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
try:
55
import queue
66
except ImportError:
7-
import Queue as queue
7+
import Queue as queue # type: ignore[import-not-found, no-redef]

mypy.ini

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[mypy]
2+
files = logtail

py.typed

Whitespace-only changes.

test-requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ coverage>=3.7.1
22
httpretty>=0.9.4
33
nose-py3
44
mock>=1.0.1
5+
mypy>=1.13.0
6+
types-setuptools>=75.2.0.20241019
7+
msgpack-types>=0.5.0

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ deps =
1515
-rrequirements.txt
1616
commands =
1717
nosetests --with-coverage --cover-branches --cover-package=logtail
18+
mypy logtail

0 commit comments

Comments
 (0)