Closed JoeHCQ1 closed 2 years ago
A few questions:
from __future__ import annotations
which allows using types as subscriptable objects?I can confirm I am using Python 3.8.
I am using from __future__ import annotations
.
I tried your fix, which, added the line to my loader.py
file like so:
And tried again, unfortunately I got the same error. ☹️
I've had vs-code not save when I thought it did sometimes so I verified that the change was there via head ./avenv/lib/python3.8/site-packages/pytkdocs/loader.py
and it was in fact there, just not helping.
Thanks though 🙂
Thanks for trying! I'll get my hands into it as soon as I get some time :slightly_smiling_face:
I can confirm that get_type_hints
simply does not support future annotations on Python less than 3.9. So I'm inclined to say that the pytkdocs + future annotations combo is not supported on Python less than 3.9 :confused:
If you feel like something could be improved in the code (to bring support or at least fail gracefully), please do open a PR, I will review it.
Thanks for looking into this @pawamoy! I don't have any recommended changes.
Describe the bug If you define a class attribute's type as
set
pytkdocs crashes.To Reproduce
Expected behavior
pytkdocs
would parse the attributes without breaking.Error text
System (please complete the following information):
pytkdocs
version: 0.16.1Workaround: