Skip to content

Commit 02484bc

Browse files
committed
chore: add mypy to the build
1 parent 1c0c453 commit 02484bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+166
-3
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Code check
4242
run: tox -e ${TOX_VENV}
4343
env:
44-
TOX_VENV: black,pep8
44+
TOX_VENV: black,pep8,mypy
4545

4646
test:
4747
needs: [validate]

kazoo/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""Kazoo Zookeeper Client"""
24
from collections import defaultdict, deque
35
from functools import partial

kazoo/exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""Kazoo Exceptions"""
24
from collections import defaultdict
35

kazoo/handlers/eventlet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""A eventlet based handler."""
24
from __future__ import absolute_import
35

kazoo/handlers/gevent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""A gevent based handler."""
24
from __future__ import absolute_import
35

kazoo/handlers/threading.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""A threading based handler.
24
35
The :class:`SequentialThreadingHandler` is intended for regular Python

kazoo/handlers/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""Kazoo handler helpers"""
24

35
from collections import defaultdict

kazoo/hosts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
import urllib.parse
24

35

kazoo/interfaces.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""Kazoo Interfaces
24
35
.. versionchanged:: 1.4

kazoo/protocol/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# mypy: ignore-errors
2+
13
"""Zookeeper Protocol Connection Handler"""
24
from binascii import hexlify
35
from contextlib import contextmanager

0 commit comments

Comments
 (0)