You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copied from python-docx-template issue 495, opened by @aronbierbaum on 2023-05-11.
Describe your problem
I'm considering submitting a few pull requests. One would be to add more type hints, and the second would be to add basic asyncio support. Before I start though I want to know what versions of Python must be supported? setup.py indicates support for Python 2.7 and 3.4, but the usage of the typing module in template.py makes me think only Python 3.5+ are supported. As you are probably aware there have been many type hint improvements in recent versions.
Comments from the original thread
@elapouya on 2023-05-12:
I am afraid that despite python 2.7 is not supported anymore, many are still using it. maybe in some few years I will drop these old python versions...
@aronbierbaum on 2023-05-12:
How is that possible when the typing module is being imported?
@aronbierbaum docform supports Python 3.10 to 3.14, the same versions CI runs (#208). Async is in too, render_async() and save_async() landed in #200, and fuller type hints are tracked in #56.
Activity
cvas22 commentedon Nov 25, 2026
@aronbierbaum docform supports Python 3.10 to 3.14, the same versions CI runs (#208). Async is in too,
render_async()andsave_async()landed in #200, and fuller type hints are tracked in #56.