Skip to content

Conversation

felixfontein
Copy link
Collaborator

This also elegantly solves https://forum.ansible.com/t/40187. And since Python's package managers generally care about the minimum Python version specified by a package, this isn't a breaking change w.r.t. semver IMO.

@felixfontein
Copy link
Collaborator Author

(I plan to release this as 1.2.0.)

@gotmax23
Copy link
Collaborator

One more:

$ ruff check --extend-select=UP src                      
src/antsibull_docs_parser/parser.py:549:10: UP037 [*] Remove quotes from type annotation
    |
547 | class Parser:
548 |     _group_map: t.Mapping[str, CommandParser]
549 |     _re: "re.Pattern"  # on Python 3.6 the type is called differently
    |          ^^^^^^^^^^^^ UP037
550 |
551 |     def __init__(self, commands: t.Sequence[CommandParser]):
    |
    = help: Remove quotes

Copy link
Collaborator

@gotmax23 gotmax23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

Co-authored-by: Maxwell G <[email protected]>
@felixfontein felixfontein merged commit b9309e9 into ansible-community:main Mar 12, 2025
4 checks passed
@felixfontein felixfontein deleted the python branch March 12, 2025 19:43
@felixfontein
Copy link
Collaborator Author

@gotmax23 thanks for reviewing!

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.

2 participants