PEP 698: Fix typo in example code (#2813)
This commit is contained in:
parent
d9fca22645
commit
778c260e35
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue