You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am developing an app for Android and iOS with briefcase. Currently it is not possible, to have static type hints for these platforms. So the following lines are always marked as unreachable in VSCode on Android and iOS. At runtime this works fine.
importsysifsys.platform=="android":
print("This line is always marked as unreachable...")
ifsys.platform=="ios":
print("This line is always marked as unreachable...")
ifsys.platform=="win32":
print("This line is marked as reachable on Windows...")
It would be nice to be able to declare to develop for Android/iOS, because since Python 3.13 there is official support for Android (see PEP 738) and iOS (see PEP 730).
Describe the solution you’d like
It should be possible to define pythonPlatform to Android or iOS in the pyrightconfig.json/pyproject.toml.
An automatic platform detection is not possible because you cannot develop on Android or iOS. You can only develop on Windows, Linux, macOS for Android or iOS.
Activity