diff options
Diffstat (limited to 'tests/functional/p/postponed/postponed_evaluation_activated.py')
-rw-r--r-- | tests/functional/p/postponed/postponed_evaluation_activated.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/functional/p/postponed/postponed_evaluation_activated.py b/tests/functional/p/postponed/postponed_evaluation_activated.py new file mode 100644 index 000000000..3492fe5c2 --- /dev/null +++ b/tests/functional/p/postponed/postponed_evaluation_activated.py @@ -0,0 +1,28 @@ +# pylint: disable=missing-docstring,unused-argument,pointless-statement +# pylint: disable=too-few-public-methods,no-name-in-module +from __future__ import annotations + + +class Class: + @classmethod + def from_string(cls, source) -> Class: + ... + + def validate_b(self, obj: OtherClass) -> bool: + ... + + +class OtherClass: + ... + + +class Example: + obj: Other + + +class Other: + ... + + +class ExampleSelf: + next: ExampleSelf |