Skip to content

Commit c90056d

Browse files
committed
docs: add types to recipe.lock
1 parent 2f12afa commit c90056d

File tree

4 files changed

+101
-54
lines changed

4 files changed

+101
-54
lines changed

kazoo/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ def create(
917917
sequence=False,
918918
makepath=False,
919919
include_data=False,
920-
):
920+
) -> str:
921921
"""Create a node with the given value as its data. Optionally
922922
set an ACL on the node.
923923

kazoo/protocol/states.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""Kazoo State and Event objects"""
22
from collections import namedtuple
3+
from enum import Enum
34

45

5-
class KazooState(object):
6+
class KazooState(str, Enum):
67
"""High level connection state values
78
89
States inspired by Netflix Curator.

0 commit comments

Comments
 (0)