mirror of
https://github.com/python/cpython.git
synced 2025-07-12 22:05:16 +00:00

Move test_dataclasses.py and its "dataclass_*.py" modules into the new Lib/test/test_dataclasses/ subdirectory.
12 lines
126 B
Python
12 lines
126 B
Python
from __future__ import annotations
|
|
|
|
import dataclasses
|
|
|
|
|
|
class Foo:
|
|
pass
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class Bar:
|
|
foo: Foo
|