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
Copy file name to clipboardExpand all lines: docs/spec/directives.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ Type checkers should support the following comparison patterns:
168
168
* ``sys.version_info < <2-tuple>``
169
169
170
170
Comparisons checks are only supported against the first two elements of the version tuple.
171
-
Use of named attributes is not supported.
171
+
Use of named attributes is not mandated.
172
172
173
173
.. code-block:: python
174
174
:caption: Example `sys.version_info`
@@ -235,7 +235,7 @@ Type checkers should support the following comparison patterns:
235
235
* ``sys.implementation.version < <2-tuple>``
236
236
237
237
Comparisons checks are only supported against the first two elements of the implementation version tuple.
238
-
Use of named attributes is not supported.
238
+
Use of named attributes is not mandated.
239
239
240
240
.. code-block:: python
241
241
:caption: Example `sys.implementation.version`
@@ -257,7 +257,7 @@ No support for complex expressions
257
257
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
258
258
259
259
Type checkers are only required to support the above patterns, and are not required to evaluate complex expressions involving these variables.
260
-
For example, the pattern ``sys.platform == "linux"`` is supported but other syntax variants such as ``platform == "linux"`` and ``"win" not in sys.platform`` are not supported.
260
+
For example, the pattern ``sys.platform == "linux"`` is supported but other syntax variants such as ``platform == "linux"`` and ``"win" not in sys.platform`` are not mandated.
261
261
262
262
Therefore checkers are **not required** to understand obfuscations such as:
0 commit comments