PEP 544: Add missing empty body to examples (#3783)

This commit is contained in:
Hugo ChunHo Lin 2024-05-18 00:58:16 +08:00 committed by GitHub
parent 134897bc1f
commit fca6000dfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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