From c061adb5b8b79e8f1cc36dc8d5d6de8c9af0cc94 Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Tue, 22 Feb 2022 16:01:28 -0700 Subject: [PATCH] Fixed typo in documentation. --- docs/type-inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/type-inference.md b/docs/type-inference.md index 18f5d5ca2..a2c65cc64 100644 --- a/docs/type-inference.md +++ b/docs/type-inference.md @@ -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.