-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Labels
topic: featureDiscussions about new features for Python's type annotationsDiscussions about new features for Python's type annotations
Description
Problem
Sometimes, attributes and variables are only defined for a specific implementation.
E.g. I recently saw that PyPy has a sys.pypy_version_info variable.
At the moment, type checkers only support sys.version_info and sys.platform checks AFAIK.1
Idea
Add support for sys.implementation.name2 checks.
import sys
if sys.implementation.name == "pypy":
pypy_version_info: ...Footnotes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: featureDiscussions about new features for Python's type annotationsDiscussions about new features for Python's type annotations