feat(typings): add stubs for Android and Java dependencies to support type checking

This commit is contained in:
Ivan 2026-07-10 15:52:07 -05:00
parent 89d7a008ee
commit e6d6ae9042
No known key found for this signature in database
4 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1 @@
# Optional Android dependency; stub for type checking only.

View file

@ -0,0 +1,6 @@
# Optional Chaquopy dependency; stub for type checking only.
from typing import Any
def jclass(name: str) -> Any: ...
def dynamic_proxy(*args: Any, **kwargs: Any) -> Any: ...

View file

@ -0,0 +1 @@
# Optional Android dependency; stub for type checking only.

5
typings/usb4a/usb.pyi Normal file
View file

@ -0,0 +1,5 @@
# Optional Android dependency; stub for type checking only.
from typing import Any
def set_context(android_context: Any) -> None: ...