commit | d219cc4180e7589807ebbef7421879f095e72a98 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yury@magic.io> | Mon Dec 09 09:54:20 2019 -0500 |
committer | Ćukasz Langa <lukasz@langa.pl> | Mon Dec 09 15:54:20 2019 +0100 |
tree | 851c77c76d776d146532fd16db6ccacbe7a1354e | |
parent | bba873e633f0f1e88ea12fb935cbd58faa77f976 [diff] [blame] |
bpo-34776: Fix dataclasses to support __future__ "annotations" mode (#9518)
diff --git a/Lib/test/dataclass_textanno.py b/Lib/test/dataclass_textanno.py new file mode 100644 index 0000000..3eb6c94 --- /dev/null +++ b/Lib/test/dataclass_textanno.py
@@ -0,0 +1,12 @@ +from __future__ import annotations + +import dataclasses + + +class Foo: + pass + + +@dataclasses.dataclass +class Bar: + foo: Foo