Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from typing import final


@final
class Playtypus(Animal):
@final
Comment thread
Pierre-Sassoulas marked this conversation as resolved.
Outdated
def lay_egg(self):
...
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The message is emitted when the ``final`` decorator is used with a Python version less than 3.8.
The ``final`` decorator was introduced in Python version 3.8.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@


Comment thread
Pierre-Sassoulas marked this conversation as resolved.
Outdated
class Playtypus(Animal):
def lay_egg(self):
...
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `PEP 591 <https://peps.python.org/pep-0591/#the-final-decorator>`_
โšก