From 0055de55f62777bb8a8dd882541c9e2ed71caade Mon Sep 17 00:00:00 2001 From: Hugo ChunHo Lin Date: Thu, 16 May 2024 02:02:35 +0800 Subject: [PATCH] fix: Update pep-0544.rst (#3312) --- peps/pep-0544.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peps/pep-0544.rst b/peps/pep-0544.rst index 039cffa73c9..1b2d75f3728 100644 --- a/peps/pep-0544.rst +++ b/peps/pep-0544.rst @@ -401,6 +401,7 @@ subtyping -- the semantics of inheritance is not changed. Examples:: ... def complex_method(self) -> int: # some complex code here + ... class NiceColor(PColor): def draw(self) -> str: @@ -415,6 +416,7 @@ subtyping -- the semantics of inheritance is not changed. Examples:: return "probably gray" def complex_method(self) -> int: # class needs to implement this + ... nice: NiceColor another: ImplicitColor