After seeing the (awesome) new Annotated
type annotation in python 3.9 (varaidic type constraints!), I rushed to upgrade so I could check them out.
(https://docs.python.org/3/library/typing.html?highlight=valuerange)
But when I tried using ValueRange[min,max]
or MaxLen[n]
- I couldn't seem to find them anywhere..
PyCharm didn't offer me any help, and they don't seem to be in the typing
module where I might expect them.
The docs feature them but googling I can't find any reference online as to how to actually import them.
Are they not in the language yet? or just in some new module I'm not aware of?