mirror of
https://github.com/python/cpython.git
synced 2024-12-18 14:24:33 +08:00
b0544ba77c
This reverts commits044a1048ca
and1be456ae9d
, adapting the code to changes that happened after it.
13 lines
126 B
Python
13 lines
126 B
Python
from __future__ import annotations
|
|
|
|
import dataclasses
|
|
|
|
|
|
class Foo:
|
|
pass
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class Bar:
|
|
foo: Foo
|