blob: 6595b1265a4ec45ddb13aa1042c0125de41c76f1 (
plain)
1
2
3
4
|
Fix dataclasses to work if using literal string type annotations or if using
PEP 563 "Postponed Evaluation of Annotations". Only specific string
prefixes are detected for both ClassVar ("ClassVar" and "typing.ClassVar")
and InitVar ("InitVar" and "dataclasses.InitVar").
|