Skip to content

Add support for Android and iOS #10752

Closed

Description

@timrid

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.

import sys
if sys.platform == "android":
    print("This line is always marked as unreachable...")
if sys.platform == "ios":
    print("This line is always marked as unreachable...")
if sys.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions