10000 nit: Fix wrong example code in comment by real-or-random · Pull Request #18860 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

nit: Fix wrong example code in comment #18860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
nit: Fix wrong example code in comment
"posix" is not a valid value for sys.platform
  • Loading branch information
real-or-random authored Mar 31, 2025
commit e63dddb9b07be5fcd96cfd5517ff0ceabc4ee49b
2 changes: 1 addition & 1 deletion mypy/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def consider_sys_platform(expr: Expression, platform: str) -> int:
Return ALWAYS_TRUE, ALWAYS_FALSE, or TRUTH_VALUE_UNKNOWN.
"""
# Cases supported:
# - sys.platform == 'posix'
# - sys.platform == 'linux'
# - sys.platform != 'win32'
# - sys.platform.startswith('win')
if isinstance(expr, ComparisonExpr):
Expand Down
0