ericvsmith / dataclasses

Apache License 2.0
587 stars 53 forks source link

Python 3.5 Naive Question #130

Closed s0undt3ch closed 6 years ago

s0undt3ch commented 6 years ago

Sorry for the issue about a simple question.

What's stopping this backport to go as far back as 3.5?

s0undt3ch commented 6 years ago

Noted that I found this repo through a good search and haven't actually tried using it under 3.5 yet.

ericvsmith commented 6 years ago

It’s because PEP 526 variable annotations were introduced in 3.6. I suppose you could backport make_dataclass back to 3.5, but I don’t have time to do that.

s0undt3ch commented 6 years ago

Ah, yes, that makes sense. Thanks!