typing.final: Declare That a Method Should Not Be Overridden

If you want to declare that some methods shouldn’t be overridden by subclasses, use the decorator typing.final.

This method is available for Python 3.8 and above. 

Related Posts

Related Posts

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran