Skip to content

Commit 33a8060

Browse files
author
Guido van Rossum
committed
Update docstrings/comments in response to review.
1 parent 3f3d4ff commit 33a8060

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mypy/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,8 +1694,8 @@ def order_ascc(graph: Graph, ascc: AbstractSet[str], pri_max: int = PRI_ALL) ->
16941694
each SCC thus found. The recursion is bounded because at each
16951695
recursion the spread in priorities is (at least) one less.
16961696
1697-
In practice there are only a few priority levels (currently
1698-
N=3) and in the worst case we just carry out the same algorithm
1697+
In practice there are only a few priority levels (less than a
1698+
dozen) and in the worst case we just carry out the same algorithm
16991699
for finding SCCs N times. Thus the complexity is no worse than
17001700
the complexity of the original SCC-finding algorithm -- see
17011701
strongly_connected_components() below for a reference.

mypy/semanal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,11 +2993,11 @@ def infer_reachability_of_if_statement(s: IfStmt,
29932993
for i in range(len(s.expr)):
29942994
result = infer_if_condition_value(s.expr[i], pyversion, platform)
29952995
if result in (ALWAYS_FALSE, MYPY_FALSE):
2996-
# The condition is always false, so we skip the if/elif body.
2996+
# The condition is considered always false, so we skip the if/elif body.
29972997
mark_block_unreachable(s.body[i])
29982998
elif result in (ALWAYS_TRUE, MYPY_TRUE):
2999-
# This condition is always true, so all of the remaining
3000-
# elif/else bodies will never be executed.
2999+
# This condition is considered always true, so all of the remaining
3000+
# elif/else bodies should not be checked.
30013001
if result == MYPY_TRUE:
30023002
# This condition is false at runtime; this will affect
30033003
# import priorities.

0 commit comments

Comments
 (0)