Skip to content
Myr

Merge branch 'main' into fix-prompt-ansi-stripping

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Rowlando13 · committed by GitHub · parents 93ba007, 6ec99f8 · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • tests:+4 added−5 removed
  • other:+1 added−0 removed

2 files+5 added−5 removed

modified:tests/test_basic.py+4 added-5 removed
1from __future__ import annotations23import enum4import os5from itertools import chain56import pytest78import click
247 unmodified lines
256257258@pytest.mark.parametrize(259 ("value", "expect"),261 chain(262 ((x, "True") for x in ("1", "true", "t", "yes", "y", "on")),263 ((x, "False") for x in ("0", "false", "f", "no", "n", "off")),264 ),260 [261 *((x, "True") for x in ("1", "true", "t", "yes", "y", "on")),262 *((x, "False") for x in ("0", "false", "f", "no", "n", "off")),263 ],264)265def test_boolean_conversion(runner, value, expect):266 @click.command()267 @click.option("--flag", type=bool)
592 unmodified lines
modified:CHANGES.md+1 added
8 unmodified lines
9- `confirm()` and `prompt()` strip ANSI color and style codes from the10 prompt when the output stream does not support them, matching `echo()`.11 This stripping was lost in `8.4.0` when {pr}`2969` began writing the12 prompt with `input()` directly. {issue}`3572` {pr}`3653`13- Fix test failures when using pytest >= 9.1. {pr}`3656`1415## Version 8.4.21617Released 2026-06-24
1561 unmodified lines