Skip to content

Commit 16f1829

Browse files
committed
fixup: lease typed dict
1 parent 43466c7 commit 16f1829

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

kazoo/recipe/lease.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@
1414

1515
from kazoo.exceptions import CancelledError
1616

17+
from typing_extensions import TypedDict
18+
1719
if TYPE_CHECKING:
1820
from kazoo.client import KazooClient
1921
from typing import Callable, Optional
20-
from typing_extensions import TypedDict
2122

22-
class LeaseData(TypedDict):
23-
version: int
24-
holder: str
25-
end: str
23+
class LeaseData(TypedDict):
24+
version: int
25+
holder: str
26+
end: str
2627

2728

2829
class NonBlockingLease(object):

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ packages = find:
4242
install_requires =
4343
six
4444
selectors2>=2.0.2 ; python_version < "3.4.0"
45+
typing-extensions
4546

4647
[aliases]
4748
release = sdist bdist_wheel
@@ -66,6 +67,7 @@ test =
6667

6768
typing =
6869
mypy
70+
types-six
6971
types-mock
7072

7173
eventlet =
@@ -86,5 +88,6 @@ alldeps =
8688
%(gevent)s
8789
%(sasl)s
8890
%(docs)s
91+
%(typing)s
8992

9093

0 commit comments

Comments
 (0)