]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] GH-112152: Fix typo in `typing.override` docstring (GH-112158) (#112162)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Nov 2023 15:32:47 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 15:32:47 +0000 (15:32 +0000)
GH-112152: Fix typo in `typing.override` docstring (GH-112158)
(cherry picked from commit 12c7e9d573de57343cf018fb4e67521aba46c90f)

Co-authored-by: Qua27 <92877777+Qua27@users.noreply.github.com>
Lib/typing.py

index 9e2adbe2214a8af3c43c310baa46227c307d7e86..9c8f48eef66b90c50c6a3d66a2f97501b1de0ac3 100644 (file)
@@ -3364,7 +3364,7 @@ def override[F: _Func](method: F, /) -> F:
     Usage::
 
         class Base:
-            def method(self) -> None: ...
+            def method(self) -> None:
                 pass
 
         class Child(Base):