tests/roots/test-ext-autodoc/target/final.py
raw| 1 | from __future__ import annotations |
| 2 | |
| 3 | import typing |
| 4 | from typing import final |
| 5 | |
| 6 | import typing_extensions |
| 7 | from typing_extensions import final as final_ext # noqa: UP035 |
| 8 | |
| 9 | |
| 10 | @typing.final |
| 11 | class Class: |
| 12 | """docstring""" |
| 13 | |
| 14 | @final |
| 15 | def meth1(self): |
| 16 | """docstring""" |
| 17 | |
| 18 | def meth2(self): |
| 19 | """docstring""" |
| 20 | |
| 21 | @final_ext |
| 22 | def meth3(self): |
| 23 | """docstring""" |
| 24 | |
| 25 | @typing_extensions.final |
| 26 | def meth4(self): |
| 27 | """docstring""" |