summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dataclasses/dataclass_textanno.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-06 13:54:16 (GMT)
committerGitHub <noreply@github.com>2023-09-06 13:54:16 (GMT)
commit14d6e197cc56e5256d501839a4e66e3864ab15f0 (patch)
tree3cf9f4d8bb4caf770e331c328b21a30179c7e951 /Lib/test/test_dataclasses/dataclass_textanno.py
parent1fb20d42c58924e2e941622b3539645c7b843e0e (diff)
downloadcpython-14d6e197cc56e5256d501839a4e66e3864ab15f0.zip
cpython-14d6e197cc56e5256d501839a4e66e3864ab15f0.tar.gz
cpython-14d6e197cc56e5256d501839a4e66e3864ab15f0.tar.bz2
gh-108303: Create Lib/test/test_dataclasses/ directory (#108978)
Move test_dataclasses.py and its "dataclass_*.py" modules into the new Lib/test/test_dataclasses/ subdirectory.
Diffstat (limited to 'Lib/test/test_dataclasses/dataclass_textanno.py')
-rw-r--r--Lib/test/test_dataclasses/dataclass_textanno.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_dataclasses/dataclass_textanno.py b/Lib/test/test_dataclasses/dataclass_textanno.py
new file mode 100644
index 0000000..3eb6c94
--- /dev/null
+++ b/Lib/test/test_dataclasses/dataclass_textanno.py
@@ -0,0 +1,12 @@
+from __future__ import annotations
+
+import dataclasses
+
+
+class Foo:
+ pass
+
+
+@dataclasses.dataclass
+class Bar:
+ foo: Foo