mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 07:55:56 +03:00
Fixed typo in documentation.
This commit is contained in:
parent
28ad461484
commit
c061adb5b8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user