Skip to content

Commit 7534880

Browse files
committed
Fix some PEP8 and minor punctuation mistakes.
1 parent 6aab634 commit 7534880

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/common_issues.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ to see the types of all local varaibles at once. Example:
437437
438438
a = 1
439439
b = 'one'
440-
reveal_locals() # Revealed local types are '{'a': builtins.int, 'b': builtins.str}
440+
reveal_locals() # Revealed local types are '{'a': builtins.int, 'b': builtins.str}'
441441
442442
.. note::
443443

mypy/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ def accept(self, visitor: ExpressionVisitor[T]) -> T:
15991599

16001600

16011601
class RevealExpr(Expression):
1602-
"""Reveal type expression reveal_type(expr) or reveal locals expression."""
1602+
"""Reveal type expression reveal_type(expr) or reveal_locals() expression."""
16031603

16041604
expr = None # type: Optional[Expression]
16051605
kind = 0 # type: int
@@ -1608,7 +1608,7 @@ class RevealExpr(Expression):
16081608
def __init__(
16091609
self, kind: int,
16101610
expr: Optional[Expression] = None,
1611-
local_nodes: 'Optional[List[Var]]'=None) -> None:
1611+
local_nodes: 'Optional[List[Var]]' = None) -> None:
16121612
super().__init__()
16131613
self.expr = expr
16141614
self.kind = kind

0 commit comments

Comments
 (0)