[issue33453] from __future__ import annotations breaks dataclasses ClassVar handling

2018-05-09 Thread Rick Teachey
Rick Teachey added the comment: Sorry, mean to say it works just fine *without* the import. -- ___ Python tracker ___ ___ Python-bug

[issue33453] from __future__ import annotations breaks dataclasses ClassVar handling

2018-05-09 Thread Rick Teachey
Rick Teachey added the comment: To be clear: it works just fine with the annotations import. -- ___ Python tracker ___ ___ Python-bu

[issue33453] from __future__ import annotations breaks dataclasses ClassVar handling

2018-05-09 Thread Rick Teachey
New submission from Rick Teachey : This is broken in 3.7 (both beta 3 and 4): from __future__ import annotations from dataclasses import dataclass from typing import ClassVar, Any @dataclass class C(): class_var: ClassVar[Any] = object() data: str Traceback: Traceback (most recent cal