Fixed typo in documentation.

This commit is contained in:
Eric Traut 2022-02-22 16:01:28 -07:00
parent 28ad461484
commit c061adb5b8

View File

@ -211,7 +211,7 @@ class Child(Parent):
def method1(self, a, b):
return a
reveal_type(Child.method1) # (self: Child, a: int, b: int) -> int
reveal_type(Child.method1) # (self: Child, a: int, b: str) -> int
```
When parameter types are inherited from a base class method, the return type is not inherited. Instead, normal return type inference techniques are used.