diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-06 13:54:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 13:54:16 (GMT) |
commit | 14d6e197cc56e5256d501839a4e66e3864ab15f0 (patch) | |
tree | 3cf9f4d8bb4caf770e331c328b21a30179c7e951 /Lib/test/test_dataclasses/dataclass_textanno.py | |
parent | 1fb20d42c58924e2e941622b3539645c7b843e0e (diff) | |
download | cpython-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.py | 12 |
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 |