Skip to content

Commit

Permalink
fixup: lease typed dict
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ungurianu committed Nov 17, 2022
1 parent 43466c7 commit 16f1829
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kazoo/recipe/lease.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@

from kazoo.exceptions import CancelledError

from typing_extensions import TypedDict

if TYPE_CHECKING:
from kazoo.client import KazooClient
from typing import Callable, Optional
from typing_extensions import TypedDict

class LeaseData(TypedDict):
version: int
holder: str
end: str
class LeaseData(TypedDict):
version: int
holder: str
end: str


class NonBlockingLease(object):
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ packages = find:
install_requires =
six
selectors2>=2.0.2 ; python_version < "3.4.0"
typing-extensions

[aliases]
release = sdist bdist_wheel
Expand All @@ -66,6 +67,7 @@ test =

typing =
mypy
types-six
types-mock

eventlet =
Expand All @@ -86,5 +88,6 @@ alldeps =
%(gevent)s
%(sasl)s
%(docs)s
%(typing)s


0 comments on commit 16f1829

Please sign in to comment.