Skip to content

Commit

Permalink
PEP 698: Fix typo in example code (python#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackary authored Oct 5, 2022
1 parent d9fca22 commit 778c260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0698.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Imagine we refactor it as follows:
return 2
def call_foo(parent: Parent) -> int:
return base.foo() # This could invoke Child.foo, which may be surprising.
return parent.foo() # This could invoke Child.foo, which may be surprising.
The semantics of our code changed here, which could cause two problems:

Expand Down

0 comments on commit 778c260

Please sign in to comment.