python typing final

Solutions on MaxInterview for python typing final by the best coders in the world

showing results for - "python typing final"
Elisa
11 Nov 2018
1from typing import final
2
3
4class Base:
5    @final
6    def done(self) -> None:
7        pass
8
9class Sub(Base):
10    def done(self) -> None:  # Error reported by type checker
11          pass
12
13@final
14class Leaf:
15    pass
16
17class Other(Leaf):  # Error reported by type checker
18    pass
19
queries leading to this page
python typing finalpython typing final