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
``sys.implementation.version`` is a tuple, in the same format as sys.version_info. However it represents the version of the Python implementation
249
252
rather than the version of the Python language. This has a distinct meaning from the specific version of the Python language to which the currently
250
-
running interpreter conforms. For CPython this is the same as `sys.version_info`.
253
+
running interpreter conforms. For CPython (``sys.implementation.name == "cpython"``) this is the same as `sys.version_info`.
251
254
252
255
Type checkers should support the following comparison patterns:
253
256
* ``sys.implementation.version >= <2-tuple>``
@@ -292,7 +295,7 @@ Therefore checkers are **not required** to understand obfuscations such as:
292
295
Configuration
293
296
^^^^^^^^^^^^^
294
297
295
-
Type checkers must provide configuration or CLI options to specify target ``sys.version``, ``sys.platform``, ``sys.implementation.name`` and ``sys.implementation.version``.
298
+
Type checkers must be able to retrieve the information from the python implementation's runtime environment, or provide configuration or CLI options to specify target ``sys.version``, ``sys.platform``, ``sys.implementation.name`` and ``sys.implementation.version``.
0 commit comments