Skip to content

Commit 05fb81b

Browse files
committed
PEP589: fix indentation issue with one of the example snippets
See the screenshot - https://i.imgur.com/0lpo6a8.png
1 parent 9b68bf5 commit 05fb81b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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)