Closed dpad closed 9 months ago
😁 Very much appreciated that you reported this. I encountered the same issue yesterday as well and already fixed it on the main branch.
But instead of using t.Tuple[...]
I imported from __future__ import annotations
which allows using tuple[...]
even in Python 3.8.
I plan to release a new version today but want to fix another issue in the same release.
Would you mind trying out the main
version by installing the plugin directly from GitHub?
Thus I can be sure that this works also for you.
Hi @tobiasah , thanks for your quick response (and for the great plugin of course). I've just tried your main
version (0.0.8.dev1+gfc8d6e1
) and yes, I confirm your change fixes it too :)
🎉 Thanks for the verification.
I will release a new version within the next hours and then close this issue.
Fixed with version 0.0.8
When trying to run
mkdocs build
withmkdocs_caption==0.0.7
under Python 3.8, the following exception occurs:This is due to the use of
tuple
in the type hint, instead ofTuple
(also needsfrom typing import Tuple
).