Skip to content

Multi-platform checking #160

@MichaReiser

Description

@MichaReiser

Calling a platform-specific method with no python-platform set currently always emits a possibly-unbound warning (playground), even if the branch is guarded by an explicit sys.platform check.

The only way around the possibly-unbound warning seems to be to

  1. Use a suppression comment
  2. Only check for a specific platform, but that's not an option for everyone

Ideally, the sys.platform narrowing would be sufficient but that's probably non-trivial. A more short-term solution would be to explore ways to avoid the possibly-unbound false positive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wishNot on the current roadmap; maybe in the future

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions