Skip to content

Commit 75ed2c7

Browse files
authored
PEP 589: Fix indentation issue with one of the example snippets (#4358)
1 parent 18ac1a2 commit 75ed2c7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

peps/pep-0589.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,15 +437,15 @@ Discussion:
437437
x: int
438438
y: str
439439

440-
def f(a: A) -> None:
441-
a['y'] = 1
440+
def f(a: A) -> None:
441+
a['y'] = 1
442442

443-
def g(b: B) -> None:
444-
f(b) # Type check error: 'B' incompatible with 'A'
443+
def g(b: B) -> None:
444+
f(b) # Type check error: 'B' incompatible with 'A'
445445

446-
c: C = {'x': 0, 'y': 'foo'}
447-
g(c)
448-
c['y'] + 'bar' # Runtime error: int + str
446+
c: C = {'x': 0, 'y': 'foo'}
447+
g(c)
448+
c['y'] + 'bar' # Runtime error: int + str
449449

450450
* A TypedDict isn't consistent with any ``Dict[...]`` type, since
451451
dictionary types allow destructive operations, including

0 commit comments

Comments
 (0)