Skip to content

Commit

Permalink
PEP 544: Add missing empty body to examples (#3783)
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed May 17, 2024
1 parent 134897b commit fca6000
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peps/pep-0544.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit fca6000

Please sign in to comment.