News for hackers. Stuff that matters.
Re:Things to use in Python 3 by auscompgeek on Wednesday May 15, 2019 @08:20AM (#19918656)
Unfortunately PEP 563 [1] means that any non-type-hint usage of annotations is considered deprecated. You could still do things with decorators (like mentioned in a sibling comment), although I suppose that doesn't offer such an elegant syntax.

[1]: https://www.python.org/dev/peps/pep-0563/#non-typing-usage-o...

There are no comments on this comment yet.