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
@@ -177,7 +177,7 @@ Type checkers should support the following comparison patterns:
177
177
* ``sys.version_info < <2-tuple>``
178
178
179
179
Comparisons checks are only supported against the first two elements of the version tuple.
180
-
Use of named attributes is not supported.
180
+
Use of named attributes is not mandated.
181
181
182
182
.. code-block:: python
183
183
:caption: Example `sys.version_info`
@@ -244,7 +244,7 @@ Type checkers should support the following comparison patterns:
244
244
* ``sys.implementation.version < <2-tuple>``
245
245
246
246
Comparisons checks are only supported against the first two elements of the implementation version tuple.
247
-
Use of named attributes is not supported.
247
+
Use of named attributes is not mandated.
248
248
249
249
.. code-block:: python
250
250
:caption: Example `sys.implementation.version`
@@ -266,7 +266,7 @@ No support for complex expressions
266
266
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
267
267
268
268
Type checkers are only required to support the above patterns, and are not required to evaluate complex expressions involving these variables.
269
-
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.
269
+
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.
270
270
271
271
Therefore checkers are **not required** to understand obfuscations such as:
0 commit comments