PEP 544: Add missing empty body to examples (#3783)
This commit is contained in:
parent
134897bc1f
commit
fca6000dfd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue