Skip to content

Commit

Permalink
fixup! fixup! chore: work around flake not understanding overload
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ungurianu committed Feb 7, 2023
1 parent 06327cf commit 4298ad8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions kazoo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,44 +1275,44 @@ def get_async(self, path, watch=None):
return async_result

@overload
def get_children(
def get_children( # noqa: F811
self,
path: str,
) -> List[str]: # noqa: F811
) -> List[str]:
...

@overload
def get_children(
def get_children( # noqa: F811
self,
path: str,
watch: WatchListener,
) -> List[str]: # noqa: F811
) -> List[str]:
...

@overload
def get_children(
def get_children( # noqa: F811
self,
path: str,
watch: Optional[WatchListener],
) -> List[str]: # noqa: F811
) -> List[str]:
...

@overload
def get_children(
def get_children( # noqa: F811
self,
path: str,
watch: Optional[WatchListener],
include_data: Literal[True],
) -> List[Tuple[str, ZnodeStat]]: # noqa: F811
) -> List[Tuple[str, ZnodeStat]]:
...

@overload
def get_children(
def get_children( # noqa: F811
self,
path: str,
watch: Optional[WatchListener] = None,
include_data: Literal[False] = False,
) -> List[str]: # noqa: F811
) -> List[str]:
...

def get_children(
Expand Down

0 comments on commit 4298ad8

Please sign in to comment.