Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 368 Bytes

File metadata and controls

5 lines (3 loc) · 368 Bytes

Add a new decorator typing.override.

This decorator indicates to static type checkers that they should verify the method overrides an attribute or method of the same name in a base class. This is useful for catching bugs when base class methods are renamed but some children are not updated accordingly.

See PEP 698 for details. Patch by Steven Troxler.