PEP 698: Fix typo in example code (#2813)

This commit is contained in:
Zachary Blackwood 2022-10-05 15:00:43 -04:00 committed by GitHub
parent d9fca22645
commit 778c260e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: