-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Labels
wishNot on the current roadmap; maybe in the futureNot on the current roadmap; maybe in the future
Description
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
- Use a suppression comment
- 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
Labels
wishNot on the current roadmap; maybe in the futureNot on the current roadmap; maybe in the future