Closed jfcherng closed 1 week ago
The absolute type check with type()
was intentional, docstrings should be normal str
s, but eh a subclass is probably fine.
As for the __future__
import, I was going to use that, but I was initially trying to make python 3.6 work, which doesn't support it. Python 3.6 ended up breaking a ton of stuff though (and is no longer supported anyway) so I only made 3.9 work initially, adding 3.8 support later.
Thanks for the PR :+1:
With
from __future__ import annotations
, type annotation won't be evaluated at runtime so you can use|
in type annotation in py38.