Skip to content

Commit ca7a7a6

Browse files
authored
Update typing-final.md
1 parent d427e7f commit ca7a7a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/typing-final.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- [Python docs: `typing.final`](https://docs.python.org/3/library/typing.html#typing.final)
66

7+
## Notes
8+
79
Adding the `@final` decorator to a class or class method indicates that the object cannot be overridden. You can't subclass that class and you can't override that method in a subclass.
810

911
You can add it to either a class or a method on a class.

0 commit comments

Comments
 (0)