Skip to content

Commit

Permalink
fix more typing
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Dec 31, 2024
1 parent e9b3cf3 commit 974305c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nicegui/native/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def _send(self, *args: Any, **kwargs: Any) -> None:
async def _request(self, *args: Any, **kwargs: Any) -> Any:
def wrapper(*args: Any, **kwargs: Any) -> Any:
try:
assert method_queue is not None
assert response_queue is not None
method_queue.put((name, args, kwargs))
return response_queue.get() # wait for the method to be called and writing its result to the queue
except Exception:
Expand Down

0 comments on commit 974305c

Please sign in to comment.