summaryrefslogtreecommitdiff
path: root/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py')
-rw-r--r--tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.py
new file mode 100644
index 000000000..f9899f34a
--- /dev/null
+++ b/tests/functional/p/postponed/postponed_evaluation_activated_with_alias.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 as __annotations__
+
+
+class MyClass:
+ @classmethod
+ def from_string(cls, source) -> MyClass:
+ ...
+
+ def validate_b(self, obj: OtherClass) -> bool:
+ ...
+
+
+class OtherClass:
+ ...
+
+
+class Example:
+ obj: Other
+
+
+class Other:
+ ...
+
+
+class ExampleSelf:
+ next: ExampleSelf