mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
11 lines
348 B
Python
11 lines
348 B
Python
import sys
|
|
|
|
if sys.platform == "platform_name_1": ... # OK
|
|
|
|
if sys.platform != "platform_name_2": ... # OK
|
|
|
|
if sys.platform in ["linux"]: ... # Error: PYI007 Unrecognized sys.platform check
|
|
|
|
if sys.platform > 3: ... # Error: PYI007 Unrecognized sys.platform check
|
|
|
|
if sys.platform == 10.12: ... # Error: PYI007 Unrecognized sys.platform check
|