Skip to content

Supported Python Versions #77

Done

Description

@cvas22

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 on 2023-05-12:

It is also worth noting that Jinja dropped support for Python 2.7/3.5 in version 3.0.0 which was released two years ago. (https://jinja.palletsprojects.com/en/3.0.x/changes/#version-3-0-0)

Activity

  1. added
    help wanted
    on Nov 9, 2026
  2. cvas22 commented on Nov 25, 2026

    @cvas22
    OwnerAuthor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions