There are propositions to add a single-quote-double-quote switch (pythongh-90630), so to avoid hiccups of people passing `force` as a positional and it being used for the single-double switch, we make kwargs kwargs-only.
The comments for why these tests exist can always be found in the git history Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Intended for another branch shlex-quote-typeerror Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Add test to ensure string with single quote inside it (without which the string wouldn't need quoting) is quoted even though `force=False`.
jb2170 deleted the shlex-quote-force branch
June 4, 2026 10:59philthompson10 pushed a commit to philthompson10/cpython that referenced this pull request
Jun 17, 2026…ython#148846) There are propositions to add a single-quote-double-quote switch (pythongh-90630), so to avoid hiccups of people passing `force` as a positional and it being used for the single-double switch, we make kwargs kwargs-only. Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>