Skip to content

refactor: sort import statements in docxtpl/ - #648

Open
waketzheng wants to merge 6 commits into
elapouya:masterfrom
waketzheng:sort-imports
Open

refactor: sort import statements in docxtpl/#648
waketzheng wants to merge 6 commits into
elapouya:masterfrom
waketzheng:sort-imports

Conversation

@waketzheng

@waketzheng waketzheng commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Description

  1. Relocate the try ... except ImportError block in docxtpl/template.py to below the other import statements.
  2. Reorder imports with isort (run uvx isort docxtpl).

This is based on PR #647.
Diff: waketzheng/python-docx-template@remove-noqa...sort-imports

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant