mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00

* gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978)
Move test_dataclasses.py and its "dataclass_*.py" modules into the
new Lib/test/test_dataclasses/ subdirectory.
(cherry picked from commit 14d6e197cc
)
Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix Lint job: update Lib/test/.ruff.toml
---------
Co-authored-by: Victor Stinner <vstinner@python.org>
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
|