Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7846464

Browse files
nit: Fix wrong example code in comment (#18860)
"posix" is not a valid value for sys.platform Found when researching about python/typing#1732. I hope it's okay to send a trivial PR. If you don't want to bother with this, feel free to close this.
1 parent c6af00f commit 7846464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/reachability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def consider_sys_platform(expr: Expression, platform: str) -> int:
221221
Return ALWAYS_TRUE, ALWAYS_FALSE, or TRUTH_VALUE_UNKNOWN.
222222
"""
223223
# Cases supported:
224-
# - sys.platform == 'posix'
224+
# - sys.platform == 'linux'
225225
# - sys.platform != 'win32'
226226
# - sys.platform.startswith('win')
227227
if isinstance(expr, ComparisonExpr):

0 commit comments

Comments
 (0)