| 1 | # pylint: disable=missing-docstring,unused-argument,pointless-statement |
| 2 | # pylint: disable=too-few-public-methods,no-name-in-module |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | |
| 6 | class Class: |
| 7 | @classmethod |
| 8 | def from_string(cls, source) -> Class: |
| 9 | ... |
| 10 | |
| 11 | def validate_b(self, obj: OtherClass) -> bool: |
| 12 | ... |
| 13 | |
| 14 | |
| 15 | class OtherClass: |
| 16 | ... |
| 17 | |
| 18 | |
| 19 | class Example: |
| 20 | obj: Other |
| 21 | |
| 22 | |
| 23 | class Other: |
| 24 | ... |
| 25 | |
| 26 | |
| 27 | class ExampleSelf: |
| 28 | next: ExampleSelf |