py-backwards
py-backwards copied to clipboard
Convert Python 3 typing information into comments for Python 2
Currently, typing is simply removed. But instead, it could be converted to comments so that type checking would still work.
you should convert type info to annotations assignment. attr.dataclass(cls) looks at the class's annotations to determine which fields to add to the constructor.