Skip to content

Fix test_lazy_choices_help failing on Python 3.14#1904

Open
vtino17 wants to merge 1 commit into
httpie:masterfrom
vtino17:fix/test-py314
Open

Fix test_lazy_choices_help failing on Python 3.14#1904
vtino17 wants to merge 1 commit into
httpie:masterfrom
vtino17:fix/test-py314

Conversation

@vtino17

@vtino17 vtino17 commented Jul 22, 2026

Copy link
Copy Markdown

Fixes #1641

Initialize _help before super().init in LazyChoices to prevent argparse from calling getter() during Action init on Python 3.14.

Initialize _help before super().__init__ to prevent argparse from
triggering getter() during Action initialization, which breaks the
lazy loading contract.

Fixes httpie#1641
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.

test_lazy_choices_help fails on Python 3.14

1 participant