Skip to content

Commit

Permalink
handle empty select in async
Browse files Browse the repository at this point in the history
Co-authored-by: Łukasz Kostka <[email protected]>
  • Loading branch information
theGowda and luqasz authored Dec 1, 2024
1 parent 14e4636 commit 92c3f1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions librouteros/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ def __init__(self, path: str, api: AsyncApi):
self.path = path
self.api = api

def select(self, key: query.Key, *other: query.Key) -> query.AsyncQuery:
keys = (key,) + other
def select(self, *keys: query.Key) -> query.AsyncQuery:
return query.AsyncQuery(path=self, keys=keys, api=self.api)

def __str__(self) -> str:
Expand Down

0 comments on commit 92c3f1e

Please sign in to comment.