mirror of
https://github.com/python/cpython.git
synced 2025-07-17 08:15:19 +00:00

This reverts commits044a1048ca
and1be456ae9d
, adapting the code to changes that happened after it.
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
|