Merge branch 'stable' into error-hint-no-envvar
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kevin Deldycke · committed by GitHub · parents 1b0e19f, 44fd639 · Browse files · 41 files·+1616 added−1152 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
41 files+1616 added−1152 removed
- tests:+434 added−57 removed
- other:+1182 added−1095 removed
Provenance
- Commit
2c6e0eb- Tree
bff4df5- Author
Kevin Deldycke <kdeldycke@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent 1
1b0e19f- Parent 2
44fd639
41 files changed+1616 added−1152 removed
modified:.github/workflows/pre-commit.yaml+1 added-1 removed
6 unmodified lines7891011111213141510 unmodified lines6 unmodified lines main: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.010 unmodified linesmodified:.github/workflows/publish.yaml+4 added-22 removed
3 unmodified lines45678989121011121314151617182122231920212728293031323334353622382324252627282945464748303132335234353637387 unmodified lines3 unmodified lines tags: ['*']jobs: build: runs-on: ubuntu-latest outputs: hash: ${{ steps.hash.outputs.hash }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version-file: pyproject.toml - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - run: uv build - name: generate hash id: hash run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: path: ./dist provenance: needs: [build] permissions: actions: read id-token: write contents: write # Can't pin with hash due to how this workflow works. uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0 with: base64-subjects: ${{ needs.build.outputs.hash }} create-release: needs: [provenance] needs: [build] runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 - name: create release run: > gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} *.intoto.jsonl/* artifact/* run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact/* env: GH_TOKEN: ${{ github.token }} publish-pypi: needs: [provenance] needs: [build] environment: name: publish url: https://pypi.org/project/click/${{ github.ref_name }} runs-on: ubuntu-latest7 unmodified linesmodified:.github/workflows/tests.yaml+2 added-2 removed
20 unmodified lines212223242525262728293 unmodified lines333435363737383940418 unmodified lines20 unmodified lines - {python: '3.10'} - {name: PyPy, python: 'pypy-3.11', tox: pypy3.11} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.03 unmodified lines typing: runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0 with: enable-cache: true prune-cache: false - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.08 unmodified linesdeleted:artwork/logo.svg-75 removed
1-<?xml version="1.0" encoding="UTF-8" standalone="no"?>2-<!-- Created with Inkscape (http://www.inkscape.org/) -->3-4-<svg5- xmlns:dc="http://purl.org/dc/elements/1.1/"6- xmlns:cc="http://creativecommons.org/ns#"7- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"8- xmlns:svg="http://www.w3.org/2000/svg"9- xmlns="http://www.w3.org/2000/svg"10- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"11- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"12- width="237.36929"13- height="110.7928"14- id="svg4837"15- version="1.1"16- inkscape:version="0.48.2 r9819"17- sodipodi:docname="New document 8">18- <defs19- id="defs4839" />20- <sodipodi:namedview21- id="base"22- pagecolor="#ffffff"23- bordercolor="#666666"24- borderopacity="1.0"25- inkscape:pageopacity="0.0"26- inkscape:pageshadow="2"27- inkscape:zoom="0.98994949"28- inkscape:cx="259.76814"29- inkscape:cy="40.769955"30- inkscape:document-units="px"31- inkscape:current-layer="layer1"32- showgrid="false"33- fit-margin-top="10"34- fit-margin-left="10"35- fit-margin-right="10"36- fit-margin-bottom="10"37- inkscape:window-width="1676"38- inkscape:window-height="1006"39- inkscape:window-x="4"40- inkscape:window-y="0"41- inkscape:window-maximized="1" />42- <metadata43- id="metadata4842">44- <rdf:RDF>45- <cc:Work46- rdf:about="">47- <dc:format>image/svg+xml</dc:format>48- <dc:type49- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />50- <dc:title></dc:title>51- </cc:Work>52- </rdf:RDF>53- </metadata>54- <g55- inkscape:label="Layer 1"56- inkscape:groupmode="layer"57- id="layer1"58- transform="translate(-255.43458,-207.38101)">59- <path60- style="fill:#000000"61- d="m 466.33424,306.48462 0,-1.6892 3.16724,0 3.16723,0 0,1.6892 0,1.68919 -3.16723,0 -3.16724,0 0,-1.68919 z m -3.37839,-5.06759 0,-3.37839 1.47804,0 1.47805,0 0,3.37839 0,3.37839 -1.47805,0 -1.47804,0 0,-3.37839 z m 10.13516,0 0,-3.37839 1.47804,0 1.47805,0 0,3.37839 0,3.37839 -1.47805,0 -1.47804,0 0,-3.37839 z m -30.82778,-28.92744 0,-28.92744 1.68919,0 c 1.68919,0 1.68919,0 1.68919,1.68919 0,1.6892 0,1.6892 1.6892,1.6892 1.68919,0 1.68919,0 1.68919,1.68919 0,1.6892 0,1.6892 1.6892,1.6892 1.68919,0 1.68919,0 1.68919,1.68919 0,1.6892 0,1.6892 -1.68919,1.6892 -1.6892,0 -1.6892,0 -1.6892,-1.6892 0,-1.68919 0,-1.68919 -1.68919,-1.68919 l -1.6892,0 0,23.85986 0,23.85985 1.6892,0 c 1.68919,0 1.68919,0 1.68919,1.6892 l 0,1.68919 -3.37839,0 -3.37838,0 0,-28.92744 z m 7.00029,25.22951 c -0.13394,-0.13393 -0.24352,-0.87696 -0.24352,-1.65118 0,-1.36423 0.0529,-1.40766 1.71469,-1.40766 l 1.71468,0 -0.13106,1.58362 c -0.12024,1.45279 -0.24178,1.5892 -1.47117,1.65118 -0.73706,0.0372 -1.44968,-0.042 -1.58362,-0.17596 z m 10.14204,-0.0392 c -0.13814,-0.22352 -0.20454,-1.7545 -0.14756,-3.40219 l 0.10361,-2.99581 1.60373,0 1.60374,0 -0.12334,3.27282 -0.12334,3.27281 -1.33284,0.12938 c -0.73305,0.0712 -1.44586,-0.0535 -1.584,-0.27702 z m 10.30707,-3.03247 0,-3.36553 1.47803,0 1.47805,0 0,3.30997 0,3.30996 -1.47805,0.0556 -1.47803,0.0556 0,-3.36553 z m -17.03271,-0.26872 c -0.15484,-0.15483 -0.28153,-0.91497 -0.28153,-1.68919 0,-1.36073 0.0563,-1.40766 1.68919,-1.40766 1.6892,0 1.6892,0 1.6892,1.6892 0,1.63289 -0.0469,1.68919 -1.40766,1.68919 -0.77422,0 -1.53436,-0.12669 -1.6892,-0.28154 z m 3.09686,-4.99719 c 0,-1.44286 0.0402,-1.47804 1.68919,-1.47804 1.64898,0 1.68919,0.0352 1.68919,1.47804 0,1.44285 -0.0402,1.47805 -1.68919,1.47805 -1.64898,0 -1.68919,-0.0352 -1.68919,-1.47805 z m 10.55746,-1.68919 0,-3.16724 6.75677,0 6.75678,0 0,-1.68919 c 0,-1.64898 0.0351,-1.6892 1.47804,-1.6892 l 1.47804,0 0,3.15652 0,3.15651 -6.6512,0.1163 -6.65119,0.1163 -0.13108,1.58361 c -0.12394,1.49763 -0.20994,1.58363 -1.58361,1.58363 l -1.45255,0 0,-3.16724 z m 10.13516,-8.44597 c 0,-1.40766 0.0704,-1.47804 1.47804,-1.47804 1.40766,0 1.47805,0.0704 1.47805,1.47804 0,1.40766 -0.0704,1.47804 -1.47805,1.47804 -1.40766,0 -1.47804,-0.0704 -1.47804,-1.47804 z m -3.37839,-3.37839 c 0,-1.40766 0.0704,-1.47804 1.47804,-1.47804 1.40767,0 1.47805,0.0704 1.47805,1.47804 0,1.40767 -0.0704,1.47805 -1.47805,1.47805 -1.40765,0 -1.47804,-0.0704 -1.47804,-1.47805 z m -3.37838,-3.37839 c 0,-1.40765 0.0704,-1.47804 1.47803,-1.47804 1.40767,0 1.47805,0.0704 1.47805,1.47804 0,1.40767 -0.0704,1.47805 -1.47805,1.47805 -1.40765,0 -1.47803,-0.0704 -1.47803,-1.47805 z m -3.37839,-3.48871 c 0,-1.52897 0.0553,-1.58931 1.47804,-1.61346 1.43567,-0.0244 1.47804,0.0211 1.47804,1.58838 0,1.56241 -0.0467,1.61345 -1.47804,1.61345 -1.42721,0 -1.47804,-0.0546 -1.47804,-1.58837 z m -3.37839,-3.47921 c 0,-1.64897 0.0351,-1.68919 1.47804,-1.68919 1.44285,0 1.47805,0.0402 1.47805,1.68919 0,1.64898 -0.0352,1.6892 -1.47805,1.6892 -1.44285,0 -1.47804,-0.0403 -1.47804,-1.6892 z m -3.45076,-3.37839 c 0.15328,-1.60738 0.23052,-1.68919 1.59478,-1.68919 1.3911,0 1.43368,0.0502 1.43368,1.68919 0,1.67253 -0.0157,1.6892 -1.59478,1.6892 l -1.59477,0 0.16109,-1.6892 z m -3.30601,-3.37838 c 0,-1.64898 0.0351,-1.6892 1.47804,-1.6892 1.44285,0 1.47804,0.0402 1.47804,1.6892 0,1.64897 -0.0352,1.68919 -1.47804,1.68919 -1.44286,0 -1.47804,-0.0402 -1.47804,-1.68919 z m -3.72061,-3.27282 c 0.12395,-1.49762 0.21706,-1.59073 1.71468,-1.71468 l 1.58363,-0.13107 0,1.71469 0,1.71468 -1.71469,0 -1.71468,0 0.13106,-1.58362 z"62- id="path4856"63- inkscape:connector-curvature="0" />64- <path65- style="fill:#000000"66- d="m 271.34527,247.46047 c 0,-1.32826 -0.94153,-2.12734 -3.05297,-2.59109 -4.04056,-0.88746 -3.19986,-3.08429 1.01754,-2.65894 9.32239,0.94022 10.81407,-3.50307 2.60795,-7.76831 -2.71012,-1.40862 -5.36388,-3.27897 -5.89726,-4.15634 -1.47604,-2.42802 -0.0246,-6.42458 2.80076,-7.7119 1.48697,-0.67751 2.52398,-1.98054 2.52398,-3.17144 0,-1.13017 0.66136,-2.02144 1.5,-2.02144 0.825,0 1.5,0.85122 1.5,1.89159 0,1.19765 0.94321,2.12832 2.57104,2.53688 3.91591,0.98283 2.39946,3.10499 -1.95093,2.73019 -6.99788,-0.60291 -8.93527,3.8291 -2.87011,6.5657 9.0905,4.10163 11.015,9.73021 4.5,13.16112 -1.2375,0.65169 -2.25,2.06905 -2.25,3.1497 0,1.08065 -0.675,1.96482 -1.5,1.96482 -0.825,0 -1.5,-0.86425 -1.5,-1.92054 z m 38.357,-3.07104 c -4.57947,-1.84804 -6.77791,-8.48491 -4.32736,-13.06381 2.11183,-3.94599 10.30093,-6.28597 13.9414,-3.98367 2.2687,1.43477 0.36183,2.48777 -3.94232,2.177 -6.96682,-0.50302 -10.61631,6.27447 -5.91184,10.97894 1.71218,1.71218 2.95483,2.02243 6.5,1.62284 3.13626,-0.35351 4.38312,-0.13272 4.38312,0.77613 0,2.4062 -6.21813,3.27822 -10.643,1.49257 z m 21.1997,-1.23093 c -1.16379,-1.66155 -1.5567,-4.81653 -1.5567,-12.5 l 0,-10.27749 -2.5,0 c -1.55556,0 -2.5,-0.56667 -2.5,-1.5 0,-1.08333 1.11111,-1.5 4,-1.5 l 4,0 0.0153,11.25 c 0.008,6.1875 0.41056,11.87411 0.89363,12.63691 0.54214,0.85607 1.88505,1.19446 3.50856,0.88411 2.94677,-0.56331 4.58181,0.98192 2.46061,2.32547 -2.5829,1.63598 -6.70984,0.98184 -8.32141,-1.319 z m 20.4433,0.22251 c -1.55556,-1.55556 -2,-3.33333 -2,-8 0,-5.73333 -0.11111,-6 -2.5,-6 -1.55556,0 -2.5,-0.56667 -2.5,-1.5 0,-1.08333 1.11111,-1.5 4,-1.5 l 4,0 0.0153,6.75 c 0.0183,8.04891 0.82623,9.70461 4.40219,9.02102 2.94677,-0.56331 4.58181,0.98192 2.46061,2.32547 -2.3358,1.47948 -5.78176,0.99986 -7.87811,-1.09649 z m 18.357,1.00842 c -4.57947,-1.84804 -6.77791,-8.48491 -4.32736,-13.06381 2.11183,-3.94599 10.30093,-6.28597 13.9414,-3.98367 2.2687,1.43477 0.36183,2.48777 -3.94232,2.177 -6.96682,-0.50302 -10.61631,6.27447 -5.91184,10.97894 1.71218,1.71218 2.95483,2.02243 6.5,1.62284 3.13626,-0.35351 4.38312,-0.13272 4.38312,0.77613 0,2.4062 -6.21813,3.27822 -10.643,1.49257 z m 15.86478,-12.67646 c 0.20032,-9.84119 0.6282,-13.78431 1.52822,-14.08333 0.9358,-0.31091 1.25628,1.80502 1.275,8.41804 l 0.025,8.83333 4.01111,-4.25 c 2.32594,-2.46446 4.92367,-4.25 6.18321,-4.25 1.8968,0 1.6121,0.57059 -2.24643,4.50214 l -4.41851,4.50213 4.92271,4.99787 c 3.84161,3.90023 4.49929,4.99786 2.99467,4.99786 -1.06044,0 -4.08102,-2.12058 -6.71241,-4.71241 l -4.78435,-4.71241 0,4.71241 c 0,3.56082 -0.37346,4.71241 -1.52822,4.71241 -1.30999,0 -1.48849,-1.95179 -1.25,-13.66804 z m -37.85759,-9.82527 c -0.34636,-0.90262 -0.15025,-2.12063 0.43581,-2.70669 1.52361,-1.52361 4.41041,-0.13109 4.01242,1.93549 -0.4433,2.30188 -3.64766,2.85743 -4.44823,0.7712 z"67- id="path4887"68- inkscape:connector-curvature="0" />69- <path70- style="fill:#000000;fill-opacity:1;stroke:none"71- d="m 411.32164,243.39982 c 7.38153,0.15924 14.76525,0.0821 22.14736,0.0136 -3.6814,3.83663 -9.42739,1.45689 -14.06576,2.07921 -3.69684,-0.007 -7.3939,0.0151 -11.09,0.0923 1.0029,-0.72825 2.00505,-1.45754 3.0084,-2.18514 z"72- id="path4889"73- inkscape:connector-curvature="0" />74- </g>75-</svg>deleted:docs/_static/click-icon.pngbinary
A binary file, deleted.
added:docs/_static/click-icon.svg+11 added
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?>2+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">3+<svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">4+ <rect id="Icon" x="0" y="0" width="500" height="500" style="fill:none;"/>5+ <g>6+ <path d="M448.569,446.761l-66.389,49.07c-3.528,2.565 -8.018,4.169 -12.508,4.169l-136.626,-0c-19.243,-0 -28.223,-23.733 -14.112,-36.562l54.843,-49.07c3.849,-3.528 8.66,-5.452 14.112,-5.452l147.851,-0c20.526,-0 28.865,25.657 12.829,37.845Z" style="fill:#5c549e;fill-rule:nonzero;"/>7+ <path d="M192.956,406.03l-91.404,84.028c-6.415,6.414 -15.074,9.942 -23.734,9.942c-8.659,-0 -17.318,-3.528 -23.733,-9.942c-13.47,-13.47 -13.47,-34.317 0,-47.467l32.713,-36.561l106.158,-0Z" style="fill:#5c549e;fill-rule:nonzero;"/>8+ <path d="M328.299,216.485l-113.855,-102.309l-109.685,-0l124.118,135.343l-124.118,135.343l108.723,-0.321l114.817,-101.988c8.66,-9.301 13.15,-21.167 12.829,-33.355c0.321,-11.225 -4.169,-23.412 -12.829,-32.713Z" style="fill:#5c549e;fill-rule:nonzero;"/>9+ <path d="M191.994,93.97l-91.405,-84.028c-6.414,-6.414 -15.073,-9.942 -23.733,-9.942c-8.659,0 -17.319,3.528 -23.733,9.942c-13.47,13.47 -13.47,34.317 0,47.467l33.034,36.561l105.837,0Z" style="fill:#5c549e;fill-rule:nonzero;"/>10+ </g>11+</svg>deleted:docs/_static/click-logo-sidebar.pngbinary
A binary file, deleted.
deleted:docs/_static/click-logo.pngbinary
A binary file, deleted.
added:docs/_static/click-logo.svg+18 added
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?>2+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">3+<svg width="100%" height="100%" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">4+ <rect id="Logo" x="0" y="0" width="500" height="500" style="fill:none;"/>5+ <g>6+ <path id="Box" d="M500,50l0,400c0,27.596 -22.404,50 -50,50l-400,0c-27.596,0 -50,-22.404 -50,-50l0,-400c0,-27.596 22.404,-50 50,-50l400,0c27.596,0 50,22.404 50,50Z" style="fill:url(#_Linear1);"/>7+ <path id="Shadow" d="M500,432.911l0,17.089c0,27.596 -22.404,50 -50,50l-211.576,0l-105.636,-105.637c3.812,3.641 8.857,5.637 13.903,5.637c5.196,0 10.391,-2.117 14.24,-5.965l54.843,-50.417l-40.218,-0l-12.701,-12.701l65.234,-0.192l68.891,-61.193c5.195,-5.581 7.889,-12.701 7.697,-20.013c0.192,-6.735 -2.502,-14.048 -7.697,-19.628l203.02,203.02Zm-284.804,-276.529l12.124,12.123l-63.503,0l-12.123,-12.123l63.502,0Zm153.945,211.674c9.622,-7.312 4.619,-22.706 -7.697,-22.706l-88.711,-0c-3.271,-0 -6.157,1.154 -8.467,3.271l-32.905,29.442c-8.467,7.697 -3.079,21.937 8.467,21.937l81.975,0c2.694,0 5.388,-0.962 7.505,-2.502l39.833,-29.442Z" style="fill:#493e5e;"/>8+ <g id="Icon">9+ <path d="M369.141,368.056l-39.833,29.442c-2.117,1.54 -4.811,2.502 -7.505,2.502l-81.975,0c-11.546,0 -16.934,-14.24 -8.467,-21.937l32.905,-29.442c2.31,-2.117 5.196,-3.271 8.467,-3.271l88.711,-0c12.316,-0 17.319,15.394 7.697,22.706Z" style="fill:#fff;fill-rule:nonzero;"/>10+ <path d="M215.774,343.618l-54.843,50.417c-3.849,3.848 -9.044,5.965 -14.24,5.965c-5.196,0 -10.391,-2.117 -14.24,-5.965c-8.082,-8.082 -8.082,-20.59 0,-28.48l19.628,-21.937l63.695,-0Z" style="fill:#fff;fill-rule:nonzero;"/>11+ <path d="M296.98,229.891l-68.313,-61.386l-65.812,0l74.471,81.206l-74.471,81.206l65.234,-0.192l68.891,-61.193c5.195,-5.581 7.889,-12.701 7.697,-20.013c0.192,-6.735 -2.502,-14.048 -7.697,-19.628Z" style="fill:#fff;fill-rule:nonzero;"/>12+ <path d="M215.196,156.382l-54.842,-50.417c-3.849,-3.848 -9.045,-5.965 -14.24,-5.965c-5.196,0 -10.392,2.117 -14.24,5.965c-8.082,8.082 -8.082,20.59 -0,28.48l19.82,21.937l63.502,0Z" style="fill:#fff;fill-rule:nonzero;"/>13+ </g>14+ </g>15+ <defs>16+ <linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(3.06162e-14,500,-500,3.06162e-14,267.59,0)"><stop offset="0" style="stop-color:#d8a9ca;stop-opacity:1"/><stop offset="1" style="stop-color:#53519b;stop-opacity:1"/></linearGradient>17+ </defs>18+</svg>added:docs/_static/click-name.svg+24 added
1+<?xml version="1.0" encoding="UTF-8" standalone="no"?>2+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">3+<svg width="100%" height="100%" viewBox="0 0 679 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">4+ <g>5+ <path id="Name" d="M410.6,166.725l19.35,0c0,13.6 -3.4,24.05 -10.2,31.35c-6.8,7.3 -16.4,10.95 -28.8,10.95c-27.3,0 -40.95,-16.05 -40.95,-48.15l0,-9c0,-25.3 7,-41.15 21,-47.55c5.5,-2.6 12.15,-3.9 19.95,-3.9c11.4,0 20.675,3.125 27.825,9.375c7.15,6.25 10.725,15.275 10.725,27.075l-19.5,0c-1.1,-5.9 -3.05,-10.35 -5.85,-13.35c-2.8,-3 -7.2,-4.5 -13.2,-4.5c-7,0 -12.2,2.2 -15.6,6.6c-2.4,3.1 -3.8,8.4 -4.2,15.9c-0.2,2.4 -0.3,5.65 -0.3,9.75l0,9.3c0,11.5 1.6,19.35 4.8,23.55c3.3,4.2 8.425,6.3 15.375,6.3c6.95,0 11.75,-1.925 14.4,-5.775c2.65,-3.85 4.375,-9.825 5.175,-17.925Z" style="fill-rule:nonzero;"/>6+ <path d="M464.9,208.125l-19.5,0.15l0,-112.95l19.5,0l0,112.8Z" style="fill-rule:nonzero;"/>7+ <path d="M495.8,89.775c4.7,0 7.75,0.725 9.15,2.175c1.4,1.45 2.1,4.5 2.1,9.15c0,4.65 -0.725,7.7 -2.175,9.15c-1.45,1.45 -4.5,2.175 -9.15,2.175c-4.65,0 -7.7,-0.75 -9.15,-2.25c-1.45,-1.5 -2.175,-4.55 -2.175,-9.15c0,-4.6 0.725,-7.625 2.175,-9.075c1.45,-1.45 4.525,-2.175 9.225,-2.175Zm9.6,118.35l-19.5,0l0,-82.5l19.5,0l0,82.5Z" style="fill-rule:nonzero;"/>8+ <path d="M570.95,176.775l17.7,-0.15c-0.1,0.8 -0.2,2.25 -0.3,4.35c-0.1,2.1 -0.175,3.525 -0.225,4.275c-0.05,0.75 -0.175,1.925 -0.375,3.525c-0.2,1.6 -0.425,2.775 -0.675,3.525c-0.25,0.75 -0.575,1.725 -0.975,2.925c-1.8,5.2 -6.7,9.3 -14.7,12.3c-5.1,1.8 -10.425,2.7 -15.975,2.7c-5.55,-0 -10.575,-0.9 -15.075,-2.7c-4.5,-1.8 -8.05,-4.1 -10.65,-6.9c-5.9,-6.2 -8.85,-17.825 -8.85,-34.875c0,-17.05 2.95,-28.675 8.85,-34.875c2.6,-2.8 6.15,-5.1 10.65,-6.9c4.5,-1.8 9.5,-2.7 15,-2.7c10.8,0 19,2.7 24.6,8.1c5.6,5.4 8.4,12.9 8.4,22.5l-17.7,0c0,-4.4 -1.1,-7.675 -3.3,-9.825c-2.2,-2.15 -6.275,-3.225 -12.225,-3.225c-5.95,-0 -9.9,1.85 -11.85,5.55c-1.95,3.7 -2.925,9.25 -2.925,16.65l0,7.8c0,11.9 2.3,19.2 6.9,21.9c2.1,1.3 4.85,1.95 8.25,1.95c3.4,-0 6.175,-0.325 8.325,-0.975c2.15,-0.65 3.7,-1.775 4.65,-3.375c0.95,-1.6 1.575,-3.175 1.875,-4.725c0.3,-1.55 0.5,-3.825 0.6,-6.825Z" style="fill-rule:nonzero;"/>9+ <path d="M678.65,208.125l-23.4,0l-22.5,-30.3l-8.55,12.15l0,18.15l-19.5,0l0,-112.8l19.5,0l0,71.25l27.3,-40.65l22.05,0l-28.05,38.4l33.15,43.8Z" style="fill-rule:nonzero;"/>10+ <g id="Logo">11+ <path id="Box" d="M300,30l0,240c0,16.557 -13.443,30 -30,30l-240,-0c-16.557,-0 -30,-13.443 -30,-30l0,-240c0,-16.557 13.443,-30 30,-30l240,0c16.557,0 30,13.443 30,30Z" style="fill:url(#_Linear1);"/>12+ <path id="Shadow" d="M300,259.747l0,10.253c0,16.557 -13.443,30 -30,30l-126.946,-0l-63.381,-63.382c2.287,2.184 5.314,3.382 8.342,3.382c3.117,0 6.234,-1.27 8.544,-3.579l32.905,-30.25l-24.131,-0l-7.62,-7.621l39.141,-0.115l41.334,-36.716c3.117,-3.348 4.734,-7.62 4.618,-12.008c0.116,-4.041 -1.501,-8.428 -4.618,-11.776l121.812,121.812Zm-170.882,-165.918l7.274,7.274l-38.102,0l-7.273,-7.274l38.101,0Zm92.367,127.005c5.773,-4.388 2.771,-13.624 -4.619,-13.624l-53.226,-0c-1.963,-0 -3.695,0.693 -5.08,1.963l-19.744,17.665c-5.08,4.618 -1.847,13.162 5.081,13.162l49.185,0c1.616,0 3.233,-0.577 4.503,-1.501l23.9,-17.665Z" style="fill:#493e5e;"/>13+ <g id="Icon">14+ <path d="M221.485,220.834l-23.9,17.665c-1.27,0.924 -2.887,1.501 -4.503,1.501l-49.185,0c-6.928,0 -10.161,-8.544 -5.081,-13.162l19.744,-17.665c1.385,-1.27 3.117,-1.963 5.08,-1.963l53.226,-0c7.39,-0 10.392,9.236 4.619,13.624Z" style="fill:#fff;fill-rule:nonzero;"/>15+ <path d="M129.464,206.171l-32.905,30.25c-2.31,2.309 -5.427,3.579 -8.544,3.579c-3.118,0 -6.235,-1.27 -8.544,-3.579c-4.85,-4.849 -4.85,-12.354 -0,-17.088l11.776,-13.162l38.217,-0Z" style="fill:#fff;fill-rule:nonzero;"/>16+ <path d="M178.188,137.935l-40.988,-36.832l-39.487,0l44.683,48.724l-44.683,48.723l39.141,-0.115l41.334,-36.716c3.117,-3.348 4.734,-7.62 4.618,-12.008c0.116,-4.041 -1.501,-8.428 -4.618,-11.776Z" style="fill:#fff;fill-rule:nonzero;"/>17+ <path d="M129.118,93.829l-32.906,-30.25c-2.309,-2.309 -5.426,-3.579 -8.544,-3.579c-3.117,0 -6.235,1.27 -8.544,3.579c-4.849,4.849 -4.849,12.354 0,17.088l11.893,13.162l38.101,0Z" style="fill:#fff;fill-rule:nonzero;"/>18+ </g>19+ </g>20+ </g>21+ <defs>22+ <linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.83697e-14,300,-300,1.83697e-14,160.554,0)"><stop offset="0" style="stop-color:#d8a9ca;stop-opacity:1"/><stop offset="1" style="stop-color:#53519b;stop-opacity:1"/></linearGradient>23+ </defs>24+</svg>modified:docs/conf.py+2 added-2 removed
49 unmodified lines50 "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"],51 }52 singlehtml_sidebars = {"index": ["project.html", "localtoc.html", "ethicalads.html"]}53 html_static_path = ["_static"]54-html_favicon = "_static/click-icon.png"55-html_logo = "_static/click-logo-sidebar.png"54+html_favicon = "_static/click-icon.svg"55+html_logo = "_static/click-logo.svg"56 html_title = f"Click Documentation ({version})"57 html_show_sourcelink = Falseadded:docs/contrib.md+45 added
1+(contrib)=2+3+# click-contrib4+5+As the user number of Click grows, more and more major feature requests are6+made. To users, it may seem reasonable to include those features with Click;7+however, many of them are experimental or aren't practical to support8+generically. Maintainers have to choose what is reasonable to maintain in Click9+core.10+11+The [click-contrib](https://github.com/click-contrib/) GitHub organization exists as a place to collect third-party12+packages that extend Click's features. It is also meant to ease the effort of13+searching for such extensions.14+15+Please note that the quality and stability of those packages may be different16+from Click itself. While published under a common organization, they are still17+separate from Click and the Pallets maintainers.18+19+## Third-party projects20+21+Other projects that extend Click's features are available outside the22+[click-contrib](https://github.com/click-contrib/) organization.23+24+Some of the most popular and actively maintained are listed below:25+26+| Project | Description | Popularity | Activity |27+|---------------------------------------------------------|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|28+| [Typer](https://github.com/fastapi/typer) | Use Python type hints to create CLI apps. |  |  |29+| [rich-click](https://github.com/ewels/rich-click) | Format help output with Rich. |  |  |30+| [click-app](https://github.com/simonw/click-app) | Cookiecutter template for creating new CLIs. |  |  |31+| [Cloup](https://github.com/janluke/cloup) | Adds option groups, constraints, command aliases, help themes, suggestions and more. |  |  |32+| [Click Extra](https://github.com/kdeldycke/click-extra) | Cloup + colorful `--help`, `--config`, `--show-params`, `--verbosity` options, etc. |  |  |33+34+```{note}35+To make it into the list above, a project:36+37+- must be actively maintained (at least one commit in the last year)38+- must have a reasonable number of stars (at least 20)39+40+If you have a project that meets these criteria, please open a pull request41+to add it to the list.42+43+If a project is no longer maintained or does not meet the criteria above,44+please open a pull request to remove it from the list.45+```deleted:docs/contrib.rst-58 removed
1-.. _contrib:2-3-=============4-click-contrib5-=============6-7-As the number of users of Click grows, more and more major feature requests are8-made. To users it may seem reasonable to include those features with Click;9-however, many of them are experimental or aren't practical to support10-generically. Maintainers have to choose what is reasonable to maintain in Click11-core.12-13-The click-contrib_ GitHub organization exists as a place to collect third-party14-packages that extend Click's features. It is also meant to ease the effort of15-searching for such extensions.16-17-Please note that the quality and stability of those packages may be different18-than Click itself. While published under a common organization, they are still19-separate from Click and the Pallets maintainers.20-21-22-Third-party projects23---------------------24-25-Other projects that extend Click's features are available outside of the26-click-contrib_ organization.27-28-Some of the most popular and actively maintained are listed below:29-30-========================================================== =========================================================================================== ================================================================================================= ======================================================================================================31-Project Description Popularity Activity32-========================================================== =========================================================================================== ================================================================================================= ======================================================================================================33-`Typer <https://github.com/fastapi/typer>`_ Use Python type hints to create CLI apps. .. image:: https://img.shields.io/github/stars/fastapi/typer?label=%20&style=flat-square .. image:: https://img.shields.io/github/last-commit/fastapi/typer?label=%20&style=flat-square34- :alt: GitHub stars :alt: Last commit35-`rich-click <https://github.com/ewels/rich-click>`_ Format help outputwith Rich. .. image:: https://img.shields.io/github/stars/ewels/rich-click?label=%20&style=flat-square .. image:: https://img.shields.io/github/last-commit/ewels/rich-click?label=%20&style=flat-square36- :alt: GitHub stars :alt: Last commit37-`click-app <https://github.com/simonw/click-app>`_ Cookiecutter template for creating new CLIs. .. image:: https://img.shields.io/github/stars/simonw/click-app?label=%20&style=flat-square .. image:: https://img.shields.io/github/last-commit/simonw/click-app?label=%20&style=flat-square38- :alt: GitHub stars :alt: Last commit39-`Cloup <https://github.com/janluke/cloup>`_ Adds option groups, constraints, command aliases, help themes, suggestions and more. .. image:: https://img.shields.io/github/stars/janluke/cloup?label=%20&style=flat-square .. image:: https://img.shields.io/github/last-commit/janluke/cloup?label=%20&style=flat-square40- :alt: GitHub stars :alt: Last commit41-`Click Extra <https://github.com/kdeldycke/click-extra>`_ Cloup + colorful ``--help``, ``--config``, ``--show-params``, ``--verbosity`` options, etc. .. image:: https://img.shields.io/github/stars/kdeldycke/click-extra?label=%20&style=flat-square .. image:: https://img.shields.io/github/last-commit/kdeldycke/click-extra?label=%20&style=flat-square42- :alt: GitHub stars :alt: Last commit43-========================================================== =========================================================================================== ================================================================================================= ======================================================================================================44-45-.. note::46-47- To make it into the list above, a project:48-49- - must be actively maintained (at least one commit in the last year)50- - must have a reasonable number of stars (at least 20)51-52- If you have a project that meets these criteria, please open a pull request53- to add it to the list.54-55- If a project is no longer maintained or does not meet the criteria above,56- please open a pull request to remove it from the list.57-58-.. _click-contrib: https://github.com/click-contrib/added:docs/documentation.md+277 added
1+# Help Pages2+3+```{currentmodule} click4+```5+6+Click makes it very easy to document your command line tools. For most things Click automatically generates help pages for you. By design the text is customizable, but the layout is not.7+8+## Help Texts9+10+Commands and options accept help arguments. For commands, the docstring of the function is automatically used if provided.11+12+Simple example:13+14+```{eval-rst}15+.. click:example::16+17+ @click.command()18+ @click.argument('name')19+ @click.option('--count', default=1, help='number of greetings')20+ def hello(name: str, count: int):21+ """This script prints hello and a name one or more times."""22+ for x in range(count):23+ if name:24+ click.echo(f"Hello {name}!")25+ else:26+ click.echo("Hello!")27+28+.. click:run::29+ invoke(hello, args=['--help'])30+```31+32+## Command Short Help33+34+For subcommands, a short help snippet is generated. By default, it's the first sentence of the docstring. If too long, then it will ellipsize what cannot be fit on a single line with `...`. The short help snippet can also be overridden with `short_help`:35+36+```{eval-rst}37+.. click:example::38+39+ import click40+41+ @click.group()42+ def cli():43+ """A simple command line tool."""44+45+ @cli.command('init', short_help='init the repo')46+ def init():47+ """Initializes the repository."""48+49+.. click:run::50+ invoke(cli, args=['--help'])51+```52+53+## Command Epilog Help54+55+The help epilog is printed at the end of the help and is useful for showing example command usages or referencing additional help resources.56+57+```{eval-rst}58+.. click:example::59+60+ import click61+62+ @click.command(63+ epilog='See https://example.com for more details',64+ )65+ def init():66+ """Initializes the repository."""67+68+.. click:run::69+ invoke(init, args=['--help'])70+```71+72+(documenting-arguments)=73+74+## Documenting Arguments75+76+{class}`click.argument` does not take a `help` parameter. This follows the Unix Command Line Tools convention of using arguments only for necessary things and documenting them in the command help text77+by name. This should then be done via the docstring.78+79+A brief example:80+81+```{eval-rst}82+.. click:example::83+84+ @click.command()85+ @click.argument('filename')86+ def touch(filename):87+ """Print FILENAME."""88+ click.echo(filename)89+90+.. click:run::91+ invoke(touch, args=['--help'])92+```93+94+Or more explicitly:95+96+```{eval-rst}97+.. click:example::98+99+ @click.command()100+ @click.argument('filename')101+ def touch(filename):102+ """Print FILENAME.103+104+ FILENAME is the name of the file to check.105+ """106+ click.echo(filename)107+108+.. click:run::109+ invoke(touch, args=['--help'])110+```111+112+## Showing Defaults113+114+To control the appearance of defaults pass `show_default`.115+116+```{eval-rst}117+.. click:example::118+119+ @click.command()120+ @click.option('--n', default=1, show_default=False, help='number of dots')121+ def dots(n):122+ click.echo('.' * n)123+124+.. click:run::125+ invoke(dots, args=['--help'])126+```127+128+For single option boolean flags, the default remains hidden if the default value is False, even if show default is set to true.129+130+```{eval-rst}131+.. click:example::132+133+ @click.command()134+ @click.option('--n', default=1, show_default=True)135+ @click.option("--gr", is_flag=True, show_default=True, default=False, help="Greet the world.")136+ @click.option("--br", is_flag=True, show_default=True, default=True, help="Add a thematic break")137+ def dots(n, gr, br):138+ if gr:139+ click.echo('Hello world!')140+ click.echo('.' * n)141+ if br:142+ click.echo('-' * n)143+144+.. click:run::145+ invoke(dots, args=['--help'])146+```147+148+## Click's Wrapping Behavior149+150+Click's default wrapping ignores single new lines and rewraps the text based on the width of the terminal, to a maximum of 80 characters. In the example notice how the second grouping of three lines is rewrapped into a single paragraph.151+152+```{eval-rst}153+.. click:example::154+155+ import click156+157+ @click.command()158+ def cli():159+ """160+ This is a very long paragraph and as you161+ can see wrapped very early in the source text162+ but will be rewrapped to the terminal width in163+ the final output.164+165+ This is166+ a paragraph167+ that is compacted.168+ """169+170+.. click:run::171+ invoke(cli, args=['--help'])172+```173+174+## Escaping Click's Wrapping175+176+Sometimes Click's wrapping can be a problem, such as when showing code examples where new lines are significant. This behavior can be escaped on a per-paragraph basis by adding a line with only `\b` . The `\b` is removed from the rendered help text.177+178+Example:179+180+```{eval-rst}181+.. click:example::182+183+ import click184+185+ @click.command()186+ def cli():187+ """First paragraph.188+189+ \b190+ This is191+ a paragraph192+ without rewrapping.193+194+ And this is a paragraph195+ that will be rewrapped again.196+ """197+198+.. click:run::199+ invoke(cli, args=['--help'])200+```201+202+To change the rendering maximum width, pass `max_content_width` when calling the command.203+204+```bash205+cli(max_content_width=120)206+```207+208+## Truncating Help Texts209+210+Click gets {class}`Command` help text from the docstring. If you do not want to include part of the docstring, add the `\f` escape marker to have Click truncate the help text after the marker.211+212+Example:213+214+```{eval-rst}215+.. click:example::216+217+ import click218+219+ @click.command()220+ def cli():221+ """First paragraph.222+ \f223+224+ Words to not be included.225+ """226+227+.. click:run::228+ invoke(cli, args=['--help'])229+```230+231+(doc-meta-variables)=232+233+## Placeholder / Meta Variable234+235+The default placeholder variable ([meta variable](https://en.wikipedia.org/wiki/Metasyntactic_variable#IETF_Requests_for_Comments)) in the help pages is the parameter name in uppercase with underscores. This can be changed for Commands and Parameters with the `options_metavar` and `metavar` kwargs.236+237+```{eval-rst}238+.. click:example::239+240+ # This controls entry on the usage line.241+ @click.command(options_metavar='[[options]]')242+ @click.option('--count', default=1, help='number of greetings',243+ metavar='<int>')244+ @click.argument('name', metavar='<name>')245+ def hello(name: str, count: int) -> None:246+ """This script prints 'hello <name>' a total of <count> times."""247+ for x in range(count):248+ click.echo(f"Hello {name}!")249+250+# Example usage:251+252+.. click:run::253+ invoke(hello, args=['--help'])254+255+```256+257+## Help Parameter Customization258+259+Help parameters are automatically added by Click for any command. The default is `--help` but can be overridden by the context setting {attr}`~Context.help_option_names`. Click also performs automatic conflict resolution on the default help parameter, so if a command itself implements a parameter named `help` then the default help will not be run.260+261+This example changes the default parameters to `-h` and `--help`262+instead of just `--help`:263+264+```{eval-rst}265+.. click:example::266+267+ import click268+269+ CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])270+271+ @click.command(context_settings=CONTEXT_SETTINGS)272+ def cli():273+ pass274+275+.. click:run::276+ invoke(cli, ['-h'])277+```deleted:docs/documentation.rst-268 removed
1-Help Pages2-===================3-4-.. currentmodule:: click5-6-Click makes it very easy to document your command line tools. For most things Click automatically generates help pages for you. By design the text is customizable, but the layout is not.7-8-Help Texts9---------------10-11-Commands and options accept help arguments. For commands, the docstring of the function is automatically used if provided.12-13-Simple example:14-15-.. click:example::16-17- @click.command()18- @click.argument('name')19- @click.option('--count', default=1, help='number of greetings')20- def hello(name: str, count: int):21- """This script prints hello and a name one or more times."""22- for x in range(count):23- if name:24- click.echo(f"Hello {name}!")25- else:26- click.echo("Hello!")27-28-.. click:run::29-30- invoke(hello, args=['--help'])31-32-33-Command Short Help34-------------------35-36-For subcommands, a short help snippet is generated. By default, it's the first sentence of the docstring. If too long, then it will ellipsize what cannot be fit on a single line with ``...``. The short help snippet can also be overridden with ``short_help``:37-38-.. click:example::39-40- @click.group()41- def cli():42- """A simple command line tool."""43-44- @cli.command('init', short_help='init the repo')45- def init():46- """Initializes the repository."""47-48-49-.. click:run::50-51- invoke(cli, args=['--help'])52-53-Command Epilog Help54--------------------55-56-The help epilog is printed at the end of the help and is useful for showing example command usages or referencing additional help resources.57-58-.. click:example::59-60- @click.command(61- epilog='See https://example.com for more details',62- )63- def init():64- """Initializes the repository."""65-66-67-.. click:run::68-69- invoke(init, args=['--help'])70-71-.. _documenting-arguments:72-73-Documenting Arguments74-----------------------75-76-:class:`click.argument` does not take a ``help`` parameter. This follows the Unix Command Line Tools convention of using arguments only for necessary things and documenting them in the command help text77-by name. This should then be done via the docstring.78-79-A brief example:80-81-.. click:example::82-83- @click.command()84- @click.argument('filename')85- def touch(filename):86- """Print FILENAME."""87- click.echo(filename)88-89-90-.. click:run::91-92- invoke(touch, args=['--help'])93-94-Or more explicitly:95-96-.. click:example::97-98- @click.command()99- @click.argument('filename')100- def touch(filename):101- """Print FILENAME.102-103- FILENAME is the name of the file to check.104- """105- click.echo(filename)106-107-.. click:run::108-109- invoke(touch, args=['--help'])110-111-112-Showing Defaults113----------------------------114-To control the appearance of defaults pass ``show_default``.115-116-.. click:example::117-118- @click.command()119- @click.option('--n', default=1, show_default=False, help='number of dots')120- def dots(n):121- click.echo('.' * n)122-123-.. click:run::124-125- invoke(dots, args=['--help'])126-127-For single option boolean flags, the default remains hidden if the default value is False even if show default is true.128-129-.. click:example::130-131- @click.command()132- @click.option('--n', default=1, show_default=True)133- @click.option("--gr", is_flag=True, show_default=True, default=False, help="Greet the world.")134- @click.option("--br", is_flag=True, show_default=True, default=True, help="Add a thematic break")135- def dots(n, gr, br):136- if gr:137- click.echo('Hello world!')138- click.echo('.' * n)139- if br:140- click.echo('-' * n)141-142-.. click:run::143-144- invoke(dots, args=['--help'])145-146-147-Click's Wrapping Behavior148-----------------------------149-Click's default wrapping ignores single new lines and rewraps the text based on the width of the terminal, to a maximum of 80 characters. In the example notice how the second grouping of three lines is rewrapped into a single paragraph.150-151-.. click:example::152-153- @click.command()154- def cli():155- """156- This is a very long paragraph and as you157- can see wrapped very early in the source text158- but will be rewrapped to the terminal width in159- the final output.160-161- This is162- a paragraph163- that is compacted.164- """165-166-.. click:run::167-168- invoke(cli, args=['--help'])169-170-Escaping Click's Wrapping171----------------------------172-Sometimes Click's wrapping can be a problem, such as when showing code examples where newlines are significant. This behavior can be escaped on a per-paragraph basis by adding a line with only ``\b`` . The ``\b`` is removed from the rendered help text.173-174-Example:175-176-.. click:example::177-178- @click.command()179- def cli():180- """First paragraph.181-182- \b183- This is184- a paragraph185- without rewrapping.186-187- And this is a paragraph188- that will be rewrapped again.189- """190-191-192-.. click:run::193-194- invoke(cli, args=['--help'])195-196-To change the rendering maximum width, pass ``max_content_width`` when calling the command.197-198-.. code-block:: python199-200- cli(max_content_width=120)201-202-203-204-Truncating Help Texts205----------------------206-207-Click gets :class:`Command` help text from the docstring. If you do not want to include part of the docstring, add the ``\f`` escape marker to have Click truncate the help text after the marker.208-209-Example:210-211-.. click:example::212-213- @click.command()214- def cli():215- """First paragraph.216- \f217-218- Words to not be included.219- """220-221-.. click:run::222-223- invoke(cli, args=['--help'])224-225-.. _doc-meta-variables:226-227-Placeholder / Meta Variable228------------------------------229-230-The default placeholder variable (`meta variable <https://en.wikipedia.org/wiki/Metasyntactic_variable#IETF_Requests_for_Comments>`_) in the help pages is the parameter name in uppercase with underscores. This can be changed for Commands and Parameters with the ``options_metavar`` and ``metavar`` kwargs.231-232-.. click:example::233-234- # This controls entry on the usage line.235- @click.command(options_metavar='[[options]]')236- @click.option('--count', default=1, help='number of greetings',237- metavar='<int>')238- @click.argument('name', metavar='<name>')239- def hello(name: str, count: int) -> None:240- """This script prints 'hello <name>' a total of <count> times."""241- for x in range(count):242- click.echo(f"Hello {name}!")243-244-Example:245-246-.. click:run::247-248- invoke(hello, args=['--help'])249-250-Help Parameter Customization251-----------------------------252-Help parameters are automatically added by Click for any command. The default is ``--help`` but can be override by the context setting :attr:`~Context.help_option_names`. Click also performs automatic conflict resolution on the default help parameter so if a command itself implements a parameter named ``help`` then the default help will not be run.253-254-This example changes the default parameters to ``-h`` and ``--help``255-instead of just ``--help``:256-257-.. click:example::258-259- CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])260-261- @click.command(context_settings=CONTEXT_SETTINGS)262- def cli():263- pass264-265-266-.. click:run::267-268- invoke(cli, ['-h'])modified:docs/entry-points.rst+1 added-1 removed
1 Packaging Entry Points2 ======================3 4 It's recommended to write command line utilities as installable packages with5-entry points instead telling users to run ``python hello.py``.5+entry points instead of telling users to run ``python hello.py``.6 7 A distribution package is a ``.whl`` file you install with pip or another Python8 installer. You use a ``pyproject.toml`` file to describe the project and how it9 is built into a package. You might upload this package to PyPI, or distribute it78 unmodified linesmodified:docs/index.rst+2 added-3 removed
1 unmodified line2 3 Welcome to Click4 ================5 6-.. image:: _static/click-logo.png6+.. image:: _static/click-name.svg7 :align: center8- :scale: 50%9- :target: https://palletsprojects.com/p/click/8+ :height: 200px9 10 Click is a Python package for creating beautiful command line interfaces11 in a composable way with as little code as necessary. It's the "Command12 Line Interface Creation Kit". It's highly configurable but comes with130 unmodified linesmodified:docs/options.md+25 added
366 unmodified lines367 invoke(greet, env={'ALT_USERNAME': 'Bill', 'USERNAME': 'john'})368 369 ```370 371+Variable names are:372+ - [Case-insensitive on Windows but not on other platforms](https://github.com/python/cpython/blob/aa9eb5f757ceff461e6e996f12c89e5d9b583b01/Lib/os.py#L777-L789).373+ - Not stripped of whitespaces and should match the exact name provided to the `envvar` argument.374+375+For flag options, there is two concepts to consider: the activation of the flag driven by the environment variable, and the value of the flag if it is activated.376+377+The environment variable need to be interpreted, because values read from them are always strings. We need to transform these strings into boolean values that will determine if the flag is activated or not.378+379+Here are the rules used to parse environment variable values for flag options:380+ - `true`, `1`, `yes`, `on`, `t`, `y` are interpreted as activating the flag381+ - `false`, `0`, `no`, `off`, `f`, `n` are interpreted as deactivating the flag382+ - The presence of the environment variable without value is interpreted as deactivating the flag383+ - Empty strings are interpreted as deactivating the flag384+ - Values are case-insensitive, so the `True`, `TRUE`, `tRuE` strings are all activating the flag385+ - Values are stripped of leading and trailing whitespaces before being interpreted, so the `" True "` string is transformed to `"true"` and so activates the flag386+ - If the flag option has a `flag_value` argument, passing that value in the environment variable will activate the flag, in addition to all the cases described above387+ - Any other value is interpreted as deactivating the flag388+389+.. caution::390+ For boolean flags with a pair of values, the only recognized environment variable is the one provided to the `envvar` argument.391+392+ So an option defined as `--flag\--no-flag`, with a `envvar="FLAG"` parameter, there is no magical `NO_FLAG=<anything>` variable that is recognized. Only the `FLAG=<anything>` environment variable is recognized.393+394+Once the status of the flag has been determine to be activated or not, the `flag_value` is used as the value of the flag if it is activated. If the flag is not activated, the value of the flag is set to `None` by default.395+396 ## Multiple Options from Environment Values397 398 As options can accept multiple values, pulling in such values from399 environment variables (which are strings) is a bit more complex. The way77 unmodified linesadded:docs/unicode-support.md+100 added
1+# Unicode Support2+3+```{currentmodule} click4+```5+6+Click has to take extra care to support Unicode text in different environments.7+8+- The command line in Unix is traditionally bytes, not Unicode. While there are encoding hints, there are some9+ situations where this can break. The most common one is SSH connections to machines with different locales.10+11+ Misconfigured environments can cause a wide range of Unicode problems due to the lack of support for roundtripping12+ surrogate escapes. This will not be fixed in Click itself!13+14+- Standard input and output is opened in text mode by default. Click has to reopen the stream in binary mode in certain15+ situations. Because there is no standard way to do this, it might not always work. Primarily this can become a problem16+ when testing command-line applications.17+18+ This is not supported:19+20+ ```python21+ sys.stdin = io.StringIO('Input here')22+ sys.stdout = io.StringIO()23+ ```24+25+ Instead you need to do this:26+27+ ```python28+ input = 'Input here'29+ in_stream = io.BytesIO(input.encode('utf-8'))30+ sys.stdin = io.TextIOWrapper(in_stream, encoding='utf-8')31+ out_stream = io.BytesIO()32+ sys.stdout = io.TextIOWrapper(out_stream, encoding='utf-8')33+ ```34+35+ Remember in that case, you need to use `out_stream.getvalue()` and not `sys.stdout.getvalue()` if you want to access36+ the buffer contents as the wrapper will not forward that method.37+38+- `sys.stdin`, `sys.stdout` and `sys.stderr` are by default text-based. When Click needs a binary stream, it attempts to39+ discover the underlying binary stream.40+41+- `sys.argv` is always text. This means that the native type for input values to the types in Click is Unicode, not42+ bytes.43+44+ This causes problems if the terminal is incorrectly set and Python does not figure out the encoding. In that case, the45+ Unicode string will contain error bytes encoded as surrogate escapes.46+47+- When dealing with files, Click will always use the Unicode file system API by using the operating system's reported or48+ guessed filesystem encoding. Surrogates are supported for filenames, so it should be possible to open files through49+ the {func}`File` type even if the environment is misconfigured.50+51+## Surrogate Handling52+53+Click does all the Unicode handling in the standard library and is subject to its behavior. Unicode requires extra care.54+The reason for this is that the encoding detection is done in the interpreter, and on Linux and certain other operating55+systems, its encoding handling is problematic.56+57+The biggest source of frustration is that Click scripts invoked by init systems, deployment tools, or cron jobs will58+refuse to work unless a Unicode locale is exported.59+60+If Click encounters such an environment it will prevent further execution to force you to set a locale. This is done61+because Click cannot know about the state of the system once it's invoked and restore the values before Python's Unicode62+handling kicked in.63+64+If you see something like this error:65+66+```console67+Traceback (most recent call last):68+ ...69+RuntimeError: Click will abort further execution because Python was70+ configured to use ASCII as encoding for the environment. Consult71+ https://click.palletsprojects.com/unicode-support/ for mitigation72+ steps.73+```74+75+You are dealing with an environment where Python thinks you are restricted to ASCII data. The solution to these problems76+is different depending on which locale your computer is running in.77+78+For instance, if you have a German Linux machine, you can fix the problem by exporting the locale to `de_DE.utf-8`:79+80+```console81+export LC_ALL=de_DE.utf-882+export LANG=de_DE.utf-883+```84+85+If you are on a US machine, `en_US.utf-8` is the encoding of choice. On some newer Linux systems, you could also try86+`C.UTF-8` as the locale:87+88+```console89+export LC_ALL=C.UTF-890+export LANG=C.UTF-891+```92+93+On some systems it was reported that `UTF-8` has to be written as `UTF8` and vice versa. To see which locales are94+supported you can invoke `locale -a`.95+96+You need to export the values before you invoke your Python script.97+98+In Python 3.7 and later you will no longer get a `RuntimeError` in many cases thanks to {pep}`538` and {pep}`540`, which99+changed the default assumption in unconfigured environments. This doesn't change the general issue that your locale may100+be misconfigured.deleted:docs/unicode-support.rst-112 removed
1-Unicode Support2-===============3-4-.. currentmodule:: click5-6-Click has to take extra care to support Unicode text in different7-environments.8-9-* The command line in Unix is traditionally bytes, not Unicode. While10- there are encoding hints, there are some situations where this can11- break. The most common one is SSH connections to machines with12- different locales.13-14- Misconfigured environments can cause a wide range of Unicode15- problems due to the lack of support for roundtripping surrogate16- escapes. This will not be fixed in Click itself!17-18-* Standard input and output is opened in text mode by default. Click19- has to reopen the stream in binary mode in certain situations.20- Because there is no standard way to do this, it might not always21- work. Primarily this can become a problem when testing command-line22- applications.23-24- This is not supported::25-26- sys.stdin = io.StringIO('Input here')27- sys.stdout = io.StringIO()28-29- Instead you need to do this::30-31- input = 'Input here'32- in_stream = io.BytesIO(input.encode('utf-8'))33- sys.stdin = io.TextIOWrapper(in_stream, encoding='utf-8')34- out_stream = io.BytesIO()35- sys.stdout = io.TextIOWrapper(out_stream, encoding='utf-8')36-37- Remember in that case, you need to use ``out_stream.getvalue()``38- and not ``sys.stdout.getvalue()`` if you want to access the buffer39- contents as the wrapper will not forward that method.40-41-* ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are by default42- text-based. When Click needs a binary stream, it attempts to43- discover the underlying binary stream.44-45-* ``sys.argv`` is always text. This means that the native type for46- input values to the types in Click is Unicode, not bytes.47-48- This causes problems if the terminal is incorrectly set and Python49- does not figure out the encoding. In that case, the Unicode string50- will contain error bytes encoded as surrogate escapes.51-52-* When dealing with files, Click will always use the Unicode file53- system API by using the operating system's reported or guessed54- filesystem encoding. Surrogates are supported for filenames, so it55- should be possible to open files through the :class:`File` type even56- if the environment is misconfigured.57-58-59-Surrogate Handling60-------------------61-62-Click does all the Unicode handling in the standard library and is63-subject to its behavior. Unicode requires extra care. The reason for64-this is that the encoding detection is done in the interpreter, and on65-Linux and certain other operating systems, its encoding handling is66-problematic.67-68-The biggest source of frustration is that Click scripts invoked by init69-systems, deployment tools, or cron jobs will refuse to work unless a70-Unicode locale is exported.71-72-If Click encounters such an environment it will prevent further73-execution to force you to set a locale. This is done because Click74-cannot know about the state of the system once it's invoked and restore75-the values before Python's Unicode handling kicked in.76-77-If you see something like this error::78-79- Traceback (most recent call last):80- ...81- RuntimeError: Click will abort further execution because Python was82- configured to use ASCII as encoding for the environment. Consult83- https://click.palletsprojects.com/unicode-support/ for mitigation84- steps.85-86-You are dealing with an environment where Python thinks you are87-restricted to ASCII data. The solution to these problems is different88-depending on which locale your computer is running in.89-90-For instance, if you have a German Linux machine, you can fix the91-problem by exporting the locale to ``de_DE.utf-8``::92-93- export LC_ALL=de_DE.utf-894- export LANG=de_DE.utf-895-96-If you are on a US machine, ``en_US.utf-8`` is the encoding of choice.97-On some newer Linux systems, you could also try ``C.UTF-8`` as the98-locale::99-100- export LC_ALL=C.UTF-8101- export LANG=C.UTF-8102-103-On some systems it was reported that ``UTF-8`` has to be written as104-``UTF8`` and vice versa. To see which locales are supported you can105-invoke ``locale -a``.106-107-You need to export the values before you invoke your Python script.108-109-In Python 3.7 and later you will no longer get a ``RuntimeError`` in110-many cases thanks to :pep:`538` and :pep:`540`, which changed the111-default assumption in unconfigured environments. This doesn't change the112-general issue that your locale may be misconfigured.added:docs/utils.md+390 added
1+# Utilities2+3+```{currentmodule} click4+```5+6+Besides the functionality that Click provides to interface with argument parsing and handling, it also provides a bunch7+of addon functionality that is useful for writing command line utilities.8+9+## Printing to Stdout10+11+The most obvious helper is the {func}`echo` function, which in many ways works like the Python `print` statement or12+function. The main difference is that it works the same in many different terminal environments.13+14+Example:15+16+```python17+import click18+19+click.echo('Hello World!')20+```21+22+It can output both text and binary data. It will emit a trailing newline by default, which needs to be suppressed by23+passing `nl=False`:24+25+```python26+click.echo(b'\xe2\x98\x83', nl=False)27+```28+29+Last but not least {func}`echo` uses click's intelligent internal output streams to stdout and stderr which support30+unicode output on the Windows console. This means for as long as you are using `click.echo` you can output unicode31+characters (there are some limitations on the default font with regards to which characters can be displayed).32+33+```{versionadded} 6.034+```35+36+Click emulates output streams on Windows to support unicode to the Windows console through separate APIs. For more37+information see {doc}`wincmd`.38+39+```{versionadded} 3.040+```41+42+You can also easily print to standard error by passing `err=True`:43+44+```python45+click.echo('Hello World!', err=True)46+```47+48+(ansi-colors)=49+50+## ANSI Colors51+52+```{versionadded} 2.053+```54+55+The {func}`echo` function supports ANSI colors and styles. On Windows this uses [colorama](https://pypi.org/project/colorama/).56+57+Primarily this means that:58+59+- Click's {func}`echo` function will automatically strip ANSI color codes if the stream is not connected to a terminal.60+- the {func}`echo` function will transparently connect to the terminal on Windows and translate ANSI codes to terminal61+ API calls. This means that colors will work on Windows the same way they do on other operating systems.62+63+On Windows, Click uses colorama without calling `colorama.init()`. You can still call that in your code, but it's not64+required for Click.65+66+For styling a string, the {func}`style` function can be used:67+68+```python69+import click70+71+click.echo(click.style('Hello World!', fg='green'))72+click.echo(click.style('Some more text', bg='blue', fg='white'))73+click.echo(click.style('ATTENTION', blink=True, bold=True))74+```75+76+The combination of {func}`echo` and {func}`style` is also available in a single function called {func}`secho`:77+78+```python79+click.secho('Hello World!', fg='green')80+click.secho('Some more text', bg='blue', fg='white')81+click.secho('ATTENTION', blink=True, bold=True)82+```83+84+## Pager Support85+86+In some situations, you might want to show long texts on the terminal and let a user scroll through it. This can be87+achieved by using the {func}`echo_via_pager` function which works similarly to the {func}`echo` function, but always88+writes to stdout and, if possible, through a pager.89+90+Example:91+92+```python93+@click.command()94+def less():95+ click.echo_via_pager("\n".join(f"Line {idx}" for idx in range(200)))96+```97+98+If you want to use the pager for a lot of text, especially if generating everything in advance would take a lot of time,99+you can pass a generator (or generator function) instead of a string:100+101+```python102+def _generate_output():103+ for idx in range(50000):104+ yield f"Line {idx}\n"105+106+@click.command()107+def less():108+ click.echo_via_pager(_generate_output())109+```110+111+## Screen Clearing112+113+```{versionadded} 2.0114+```115+116+To clear the terminal screen, you can use the {func}`clear` function that is provided starting with Click 2.0. It does117+what the name suggests: it clears the entire visible screen in a platform-agnostic way:118+119+```python120+import click121+click.clear()122+```123+124+## Getting Characters from Terminal125+126+```{versionadded} 2.0127+```128+129+Normally, when reading input from the terminal, you would read from standard input. However, this is buffered input and130+will not show up until the line has been terminated. In certain circumstances, you might not want to do that and instead131+read individual characters as they are being written.132+133+For this, Click provides the {func}`getchar` function which reads a single character from the terminal buffer and134+returns it as a Unicode character.135+136+Note that this function will always read from the terminal, even if stdin is instead a pipe.137+138+Example:139+140+```python141+import click142+143+click.echo('Continue? [yn] ', nl=False)144+c = click.getchar()145+click.echo()146+if c == 'y':147+ click.echo('We will go on')148+elif c == 'n':149+ click.echo('Abort!')150+else:151+ click.echo('Invalid input :(')152+```153+154+Note that this reads raw input, which means that things like arrow keys will show up in the platform's native escape155+format. The only characters translated are `^C` and `^D` which are converted into keyboard interrupts and end of file156+exceptions respectively. This is done because otherwise, it's too easy to forget about that and to create scripts that157+cannot be properly exited.158+159+## Waiting for Key Press160+161+```{versionadded} 2.0162+```163+164+Sometimes, it's useful to pause until the user presses any key on the keyboard. This is especially useful on Windows165+where `cmd.exe` will close the window at the end of the command execution by default, instead of waiting.166+167+In click, this can be accomplished with the {func}`pause` function. This function will print a quick message to the168+terminal (which can be customized) and wait for the user to press a key. In addition to that, it will also become a NOP169+(no operation instruction) if the script is not run interactively.170+171+Example:172+173+```python174+import click175+click.pause()176+```177+178+## Launching Editors179+180+```{versionadded} 2.0181+```182+183+Click supports launching editors automatically through {func}`edit`. This is very useful for asking users for multi-line184+input. It will automatically open the user's defined editor or fall back to a sensible default. If the user closes the185+editor without saving, the return value will be `None`, otherwise the entered text.186+187+Example usage:188+189+```python190+import click191+192+def get_commit_message():193+ MARKER = '# Everything below is ignored\n'194+ message = click.edit('\n\n' + MARKER)195+ if message is not None:196+ return message.split(MARKER, 1)[0].rstrip('\n')197+```198+199+Alternatively, the function can also be used to launch editors for files by a specific filename. In this case, the200+return value is always `None`.201+202+Example usage:203+204+```python205+import click206+click.edit(filename='/etc/passwd')207+```208+209+## Launching Applications210+211+```{versionadded} 2.0212+```213+214+Click supports launching applications through {func}`launch`. This can be used to open the default application215+associated with a URL or filetype. This can be used to launch web browsers or picture viewers, for instance. In addition216+to this, it can also launch the file manager and automatically select the provided file.217+218+Example usage:219+220+```python221+click.launch("https://click.palletsprojects.com/")222+click.launch("/my/downloaded/file.txt", locate=True)223+```224+225+## Printing Filenames226+227+Because filenames might not be Unicode, formatting them can be a bit tricky.228+229+The way this works with click is through the {func}`format_filename` function. It does a best-effort conversion of the230+filename to Unicode and will never fail. This makes it possible to use these filenames in the context of a full Unicode231+string.232+233+Example:234+235+```python236+click.echo(f"Path: {click.format_filename(b'foo.txt')}")237+```238+239+## Standard Streams240+241+For command line utilities, it's very important to get access to input and output streams reliably. Python generally242+provides access to these streams through `sys.stdout` and friends, but unfortunately, there are API differences between243+2.x and 3.x, especially with regards to how these streams respond to Unicode and binary data.244+245+Because of this, click provides the {func}`get_binary_stream` and {func}`get_text_stream` functions, which produce246+consistent results with different Python versions and for a wide variety of terminal configurations.247+248+The end result is that these functions will always return a functional stream object (except in very odd cases; see249+{doc}`/unicode-support`).250+251+Example:252+253+```python254+import click255+256+stdin_text = click.get_text_stream('stdin')257+stdout_binary = click.get_binary_stream('stdout')258+```259+260+```{versionadded} 6.0261+```262+263+Click now emulates output streams on Windows to support unicode to the Windows console through separate APIs. For more264+information see {doc}`wincmd`.265+266+## Intelligent File Opening267+268+```{versionadded} 3.0269+```270+271+Starting with Click 3.0 the logic for opening files from the {func}`File` type is exposed through the {func}`open_file`272+function. It can intelligently open stdin/stdout as well as any other file.273+274+Example:275+276+```python277+import click278+279+stdout = click.open_file('-', 'w')280+test_file = click.open_file('test.txt', 'w')281+```282+283+If stdin or stdout are returned, the return value is wrapped in a special file where the context manager will prevent284+the closing of the file. This makes the handling of standard streams transparent and you can always use it like this:285+286+```python287+with click.open_file(filename, 'w') as f:288+ f.write('Hello World!\n')289+```290+291+## Finding Application Folders292+293+```{versionadded} 2.0294+```295+296+Very often, you want to open a configuration file that belongs to your application. However, different operating systems297+store these configuration files in different locations depending on their standards. Click provides a298+{func}`get_app_dir` function which returns the most appropriate location for per-user config files for your application299+depending on the OS.300+301+Example usage:302+303+```python304+import os305+import click306+import ConfigParser307+308+APP_NAME = 'My Application'309+def read_config():310+cfg = os.path.join(click.get_app_dir(APP_NAME), 'config.ini')311+parser = ConfigParser.RawConfigParser()312+parser.read([cfg])313+rv = {}314+for section in parser.sections():315+ for key, value in parser.items(section):316+ rv[f"{section}.{key}"] = value317+return rv318+```319+320+## Showing Progress Bars321+322+Sometimes, you have command line scripts that need to process a lot of data, but you want to quickly show the user some323+progress about how long that will take. Click supports simple progress bar rendering for that through the324+{func}`progressbar` function.325+326+```{note} If you find that you have requirements beyond what Click's progress bar supports, try using [tqdm](https://tqdm.github.io/).327+```328+329+The basic usage is very simple: the idea is that you have an iterable that you want to operate on. For each item in the330+iterable it might take some time to do processing. So say you have a loop like this:331+332+```python333+for user in all_the_users_to_process:334+ modify_the_user(user)335+```336+337+To hook this up with an automatically updating progress bar, all you need to do is to change the code to this:338+339+```python340+import click341+342+with click.progressbar(all_the_users_to_process) as bar:343+ for user in bar:344+ modify_the_user(user)345+```346+347+Click will then automatically print a progress bar to the terminal and calculate the remaining time for you. The348+calculation of remaining time requires that the iterable has a length. If it does not have a length but you know the349+length, you can explicitly provide it:350+351+```python352+with click.progressbar(all_the_users_to_process,353+ length=number_of_users) as bar:354+ for user in bar:355+ modify_the_user(user)356+```357+358+Note that {func}`progressbar` updates the bar *after* each iteration of the loop. So code like this will render359+correctly:360+361+```python362+import time363+364+with click.progressbar([1, 2, 3]) as bar:365+ for x in bar:366+ print(f"sleep({x})...")367+ time.sleep(x)368+```369+370+Another useful feature is to associate a label with the progress bar which will be shown preceding the progress bar:371+372+```python373+with click.progressbar(all_the_users_to_process,374+ label='Modifying user accounts',375+ length=number_of_users) as bar:376+ for user in bar:377+ modify_the_user(user)378+```379+380+Sometimes, one may need to iterate over an external iterator, and advance the progress bar irregularly. To do so, you381+need to specify the length (and no iterable), and use the update method on the context return value instead of iterating382+directly over it:383+384+```python385+with click.progressbar(length=total_size,386+ label='Unzipping archive') as bar:387+ for archive in zip_file:388+ archive.extract()389+ bar.update(archive.size)390+```deleted:docs/utils.rst-408 removed
1-Utilities2-=========3-4-.. currentmodule:: click5-6-Besides the functionality that Click provides to interface with argument7-parsing and handling, it also provides a bunch of addon functionality that8-is useful for writing command line utilities.9-10-11-Printing to Stdout12-------------------13-14-The most obvious helper is the :func:`echo` function, which in many ways15-works like the Python ``print`` statement or function. The main difference is16-that it works the same in many different terminal environments.17-18-Example::19-20- import click21-22- click.echo('Hello World!')23-24-It can output both text and binary data. It will emit a trailing newline25-by default, which needs to be suppressed by passing ``nl=False``::26-27- click.echo(b'\xe2\x98\x83', nl=False)28-29-Last but not least :func:`echo` uses click's intelligent internal output30-streams to stdout and stderr which support unicode output on the Windows31-console. This means for as long as you are using `click.echo` you can32-output unicode characters (there are some limitations on the default font33-with regards to which characters can be displayed).34-35-.. versionadded:: 6.036-37-Click emulates output streams on Windows to support unicode to the38-Windows console through separate APIs. For more information see39-:doc:`wincmd`.40-41-.. versionadded:: 3.042-43-You can also easily print to standard error by passing ``err=True``::44-45- click.echo('Hello World!', err=True)46-47-48-.. _ansi-colors:49-50-ANSI Colors51------------52-53-.. versionadded:: 2.054-55-The :func:`echo` function supports ANSI colors and styles. On Windows56-this uses `colorama`_.57-58-Primarily this means that:59-60-- Click's :func:`echo` function will automatically strip ANSI color codes61- if the stream is not connected to a terminal.62-- the :func:`echo` function will transparently connect to the terminal on63- Windows and translate ANSI codes to terminal API calls. This means64- that colors will work on Windows the same way they do on other65- operating systems.66-67-On Windows, Click uses colorama without calling ``colorama.init()``. You68-can still call that in your code, but it's not required for Click.69-70-For styling a string, the :func:`style` function can be used::71-72- import click73-74- click.echo(click.style('Hello World!', fg='green'))75- click.echo(click.style('Some more text', bg='blue', fg='white'))76- click.echo(click.style('ATTENTION', blink=True, bold=True))77-78-The combination of :func:`echo` and :func:`style` is also available in79-a single function called :func:`secho`::80-81- click.secho('Hello World!', fg='green')82- click.secho('Some more text', bg='blue', fg='white')83- click.secho('ATTENTION', blink=True, bold=True)84-85-86-.. _colorama: https://pypi.org/project/colorama/87-88-Pager Support89--------------90-91-In some situations, you might want to show long texts on the terminal and92-let a user scroll through it. This can be achieved by using the93-:func:`echo_via_pager` function which works similarly to the :func:`echo`94-function, but always writes to stdout and, if possible, through a pager.95-96-Example:97-98-.. click:example::99-100- @click.command()101- def less():102- click.echo_via_pager("\n".join(f"Line {idx}" for idx in range(200)))103-104-If you want to use the pager for a lot of text, especially if generating everything in advance would take a lot of time, you can pass a generator (or generator function) instead of a string:105-106-.. click:example::107- def _generate_output():108- for idx in range(50000):109- yield f"Line {idx}\n"110-111- @click.command()112- def less():113- click.echo_via_pager(_generate_output())114-115-116-Screen Clearing117----------------118-119-.. versionadded:: 2.0120-121-To clear the terminal screen, you can use the :func:`clear` function that122-is provided starting with Click 2.0. It does what the name suggests: it123-clears the entire visible screen in a platform-agnostic way:124-125-::126-127- import click128- click.clear()129-130-131-Getting Characters from Terminal132---------------------------------133-134-.. versionadded:: 2.0135-136-Normally, when reading input from the terminal, you would read from137-standard input. However, this is buffered input and will not show up until138-the line has been terminated. In certain circumstances, you might not want139-to do that and instead read individual characters as they are being written.140-141-For this, Click provides the :func:`getchar` function which reads a single142-character from the terminal buffer and returns it as a Unicode character.143-144-Note that this function will always read from the terminal, even if stdin145-is instead a pipe.146-147-Example::148-149- import click150-151- click.echo('Continue? [yn] ', nl=False)152- c = click.getchar()153- click.echo()154- if c == 'y':155- click.echo('We will go on')156- elif c == 'n':157- click.echo('Abort!')158- else:159- click.echo('Invalid input :(')160-161-Note that this reads raw input, which means that things like arrow keys162-will show up in the platform's native escape format. The only characters163-translated are ``^C`` and ``^D`` which are converted into keyboard164-interrupts and end of file exceptions respectively. This is done because165-otherwise, it's too easy to forget about that and to create scripts that166-cannot be properly exited.167-168-169-Waiting for Key Press170----------------------171-172-.. versionadded:: 2.0173-174-Sometimes, it's useful to pause until the user presses any key on the175-keyboard. This is especially useful on Windows where ``cmd.exe`` will176-close the window at the end of the command execution by default, instead177-of waiting.178-179-In click, this can be accomplished with the :func:`pause` function. This180-function will print a quick message to the terminal (which can be181-customized) and wait for the user to press a key. In addition to that,182-it will also become a NOP (no operation instruction) if the script is not183-run interactively.184-185-Example::186-187- import click188- click.pause()189-190-191-Launching Editors192------------------193-194-.. versionadded:: 2.0195-196-Click supports launching editors automatically through :func:`edit`. This197-is very useful for asking users for multi-line input. It will198-automatically open the user's defined editor or fall back to a sensible199-default. If the user closes the editor without saving, the return value200-will be ``None``, otherwise the entered text.201-202-Example usage::203-204- import click205-206- def get_commit_message():207- MARKER = '# Everything below is ignored\n'208- message = click.edit('\n\n' + MARKER)209- if message is not None:210- return message.split(MARKER, 1)[0].rstrip('\n')211-212-Alternatively, the function can also be used to launch editors for files by213-a specific filename. In this case, the return value is always `None`.214-215-Example usage::216-217- import click218- click.edit(filename='/etc/passwd')219-220-221-Launching Applications222-----------------------223-224-.. versionadded:: 2.0225-226-Click supports launching applications through :func:`launch`. This can be227-used to open the default application associated with a URL or filetype.228-This can be used to launch web browsers or picture viewers, for instance.229-In addition to this, it can also launch the file manager and automatically230-select the provided file.231-232-Example usage::233-234- click.launch("https://click.palletsprojects.com/")235- click.launch("/my/downloaded/file.txt", locate=True)236-237-238-Printing Filenames239-------------------240-241-Because filenames might not be Unicode, formatting them can be a bit242-tricky.243-244-The way this works with click is through the :func:`format_filename`245-function. It does a best-effort conversion of the filename to Unicode and246-will never fail. This makes it possible to use these filenames in the247-context of a full Unicode string.248-249-Example::250-251- click.echo(f"Path: {click.format_filename(b'foo.txt')}")252-253-254-Standard Streams255-----------------256-257-For command line utilities, it's very important to get access to input and258-output streams reliably. Python generally provides access to these259-streams through ``sys.stdout`` and friends, but unfortunately, there are260-API differences between 2.x and 3.x, especially with regards to how these261-streams respond to Unicode and binary data.262-263-Because of this, click provides the :func:`get_binary_stream` and264-:func:`get_text_stream` functions, which produce consistent results with265-different Python versions and for a wide variety of terminal configurations.266-267-The end result is that these functions will always return a functional268-stream object (except in very odd cases; see :doc:`/unicode-support`).269-270-Example::271-272- import click273-274- stdin_text = click.get_text_stream('stdin')275- stdout_binary = click.get_binary_stream('stdout')276-277-.. versionadded:: 6.0278-279-Click now emulates output streams on Windows to support unicode to the280-Windows console through separate APIs. For more information see281-:doc:`wincmd`.282-283-284-Intelligent File Opening285-------------------------286-287-.. versionadded:: 3.0288-289-Starting with Click 3.0 the logic for opening files from the :class:`File`290-type is exposed through the :func:`open_file` function. It can291-intelligently open stdin/stdout as well as any other file.292-293-Example::294-295- import click296-297- stdout = click.open_file('-', 'w')298- test_file = click.open_file('test.txt', 'w')299-300-If stdin or stdout are returned, the return value is wrapped in a special301-file where the context manager will prevent the closing of the file. This302-makes the handling of standard streams transparent and you can always use303-it like this::304-305- with click.open_file(filename, 'w') as f:306- f.write('Hello World!\n')307-308-309-Finding Application Folders310----------------------------311-312-.. versionadded:: 2.0313-314-Very often, you want to open a configuration file that belongs to your315-application. However, different operating systems store these configuration316-files in different locations depending on their standards. Click provides317-a :func:`get_app_dir` function which returns the most appropriate location318-for per-user config files for your application depending on the OS.319-320-Example usage::321-322- import os323- import click324- import ConfigParser325-326- APP_NAME = 'My Application'327-328- def read_config():329- cfg = os.path.join(click.get_app_dir(APP_NAME), 'config.ini')330- parser = ConfigParser.RawConfigParser()331- parser.read([cfg])332- rv = {}333- for section in parser.sections():334- for key, value in parser.items(section):335- rv[f"{section}.{key}"] = value336- return rv337-338-339-Showing Progress Bars340----------------------341-342-Sometimes, you have command line scripts that need to process a lot of data,343-but you want to quickly show the user some progress about how long that344-will take. Click supports simple progress bar rendering for that through345-the :func:`progressbar` function.346-347-.. note::348-349- If you find that you have requirements beyond what Click's progress350- bar supports, try using `tqdm`_.351-352- .. _tqdm: https://tqdm.github.io/353-354-The basic usage is very simple: the idea is that you have an iterable that355-you want to operate on. For each item in the iterable it might take some356-time to do processing. So say you have a loop like this::357-358- for user in all_the_users_to_process:359- modify_the_user(user)360-361-To hook this up with an automatically updating progress bar, all you need362-to do is to change the code to this::363-364- import click365-366- with click.progressbar(all_the_users_to_process) as bar:367- for user in bar:368- modify_the_user(user)369-370-Click will then automatically print a progress bar to the terminal and371-calculate the remaining time for you. The calculation of remaining time372-requires that the iterable has a length. If it does not have a length373-but you know the length, you can explicitly provide it::374-375- with click.progressbar(all_the_users_to_process,376- length=number_of_users) as bar:377- for user in bar:378- modify_the_user(user)379-380-Note that :func:`progressbar` updates the bar *after* each iteration of the381-loop. So code like this will render correctly::382-383- import time384-385- with click.progressbar([1, 2, 3]) as bar:386- for x in bar:387- print(f"sleep({x})...")388- time.sleep(x)389-390-Another useful feature is to associate a label with the progress bar which391-will be shown preceding the progress bar::392-393- with click.progressbar(all_the_users_to_process,394- label='Modifying user accounts',395- length=number_of_users) as bar:396- for user in bar:397- modify_the_user(user)398-399-Sometimes, one may need to iterate over an external iterator, and advance the400-progress bar irregularly. To do so, you need to specify the length (and no401-iterable), and use the update method on the context return value instead of402-iterating directly over it::403-404- with click.progressbar(length=total_size,405- label='Unzipping archive') as bar:406- for archive in zip_file:407- archive.extract()408- bar.update(archive.size)modified:src/click/_termui_impl.py+1 added-1 removed
614 unmodified lines615 def edit(self, text: str | bytes | bytearray | None) -> str | bytes | None:616 import tempfile617 618 if text is None:619- data = b""619+ data: bytes | bytearray = b""620 elif isinstance(text, (bytes, bytearray)):621 data = text622 else:623 if text and not text.endswith("\n"):216 unmodified linesmodified:src/click/core.py+68 added-25 removed
2552 unmodified lines2553 ) -> None:2554 if help:2555 help = inspect.cleandoc(help)2556 2557- default_is_missing = "default" not in attrs2557 super().__init__(2558 param_decls, type=type, multiple=multiple, deprecated=deprecated, **attrs2559 )2560 25 unmodified lines2586 # used as a flag to indicate using prompt or flag_value.2587 self._flag_needs_value = self.prompt is not None and not self.prompt_required2588 2589 if is_flag is None:2590+ # Implicitly a flag because flag_value was set.2591 if flag_value is not None:2592- # Implicitly a flag because flag_value was set.2592 is_flag = True2593+ # Not a flag, but when used as a flag it shows a prompt.2594 elif self._flag_needs_value:2595- # Not a flag, but when used as a flag it shows a prompt.2595 is_flag = False2597- else:2598- # Implicitly a flag because flag options were given.2599- is_flag = bool(self.secondary_opts)2596+ # Implicitly a flag because flag options were given.2597+ elif self.secondary_opts:2598+ is_flag = True2599 elif is_flag is False and not self._flag_needs_value:2600 # Not a flag, and prompt is not enabled, can be used as a2601 # flag if flag_value is set.2602 self._flag_needs_value = flag_value is not None2603 2604 self.default: t.Any | t.Callable[[], t.Any]2605 2606+ if is_flag:2607+ # Set missing default for flags if not explicitly required or prompted.2607- if is_flag and default_is_missing and not self.required:2608- if multiple:2609- self.default = ()2610- else:2611- self.default = False2608+ if self.default is None and not self.required and not self.prompt:2609+ if multiple:2610+ self.default = ()2611+ else:2612+ self.default = False2613 2613- if is_flag and flag_value is None:2614- flag_value = not self.default2614+ if flag_value is None:2615+ # A boolean flag presence in the command line is enough to set2616+ # the value: to the default if it is not blank, or to True2617+ # otherwise.2618+ flag_value = self.default if self.default else True2619 2620 self.type: types.ParamType2621 if is_flag and type is None:2622 # Re-guess the type from the flag value instead of the2623 # default.2624 self.type = types.convert_type(None, flag_value)2625 2622- self.is_flag: bool = is_flag2623- self.is_bool_flag: bool = is_flag and isinstance(self.type, types.BoolParamType)2626+ self.is_flag: bool = bool(is_flag)2627+ self.is_bool_flag: bool = bool(2628+ is_flag and isinstance(self.type, types.BoolParamType)2629+ )2630 self.flag_value: t.Any = flag_value2631 2632 # Counting2633 self.count = count2634 if count:2635 if type is None:2636 self.type = types.IntRange(min=0)2631- if default_is_missing:2637+ if self.default is None:2638 self.default = 02639 2640 self.allow_from_autoenv = allow_from_autoenv2641 self.help = help229 unmodified lines2871 if show_default_is_str:2872 default_string = f"({self.show_default})"2873 elif isinstance(default_value, (list, tuple)):2874 default_string = ", ".join(str(d) for d in default_value)2875+ elif isinstance(default_value, enum.Enum):2876+ default_string = default_value.name2877 elif inspect.isfunction(default_value):2878 default_string = _("(dynamic)")2879 elif self.is_bool_flag and self.secondary_opts:2880 # For boolean flags that have distinct True/False opts,44 unmodified lines2925 # if we're the default one in which case we return the flag2926 # value as default.2927 if self.is_flag and not self.is_bool_flag:2928 for param in ctx.command.params:2921- if param.name == self.name and param.default:2922- return t.cast(Option, param).flag_value2929+ if param.name == self.name and param.default is not None:2930+ return t.cast(Option, param).default2931 2932 return None2933 2934 return super().get_default(ctx, call=call)31 unmodified lines2966 **prompt_kwargs,2967 )2968 2969 def resolve_envvar_value(self, ctx: Context) -> str | None:2970+ """Find which environment variable to read for this option and return2971+ its value.2972+2973+ Returns the value of the environment variable if it exists, or ``None``2974+ if it does not.2975+2976+ .. caution::2977+2978+ The raw value extracted from the environment is not normalized and2979+ is returned as-is. Any normalization or reconciation with the2980+ option's type should happen later.2981+ """2982 rv = super().resolve_envvar_value(ctx)2983 2984 if rv is not None:2965- if self.is_flag and self.flag_value:2966- return str(self.flag_value)2985 return rv2986 2987 if (2988 self.allow_from_autoenv8 unmodified lines2997 2998 return None2999 3000 def value_from_envvar(self, ctx: Context) -> t.Any | None:3001+ """Normalize the value from the environment variable, if it exists."""2983- rv: t.Any | None = self.resolve_envvar_value(ctx)3002+ rv: str | None = self.resolve_envvar_value(ctx)3003 3004 if rv is None:3005 return None3006 2988- value_depth = (self.nargs != 1) + bool(self.multiple)3007+ # Non-boolean flags are more liberal in what they accept. But a flag being a3008+ # flag, its envvar value still needs to analyzed to determine if the flag is3009+ # activated or not.3010+ if self.is_flag and not self.is_bool_flag:3011+ # If the flag_value is set and match the envvar value, return it3012+ # directly.3013+ if self.flag_value is not None and rv == self.flag_value:3014+ return self.flag_value3015+ # Analyze the envvar value as a boolean to know if the flag is3016+ # activated or not.3017+ return types.BoolParamType.str_to_bool(rv)3018 3019+ # Split the envvar value if it is allowed to be repeated.3020+ value_depth = (self.nargs != 1) + bool(self.multiple)3021 if value_depth > 0:2991- rv = self.type.split_envvar_value(rv)2992-3022+ multi_rv = self.type.split_envvar_value(rv)3023 if self.multiple and self.nargs != 1:2994- rv = batch(rv, self.nargs)3024+ multi_rv = batch(multi_rv, self.nargs) # type: ignore[assignment]3025 3026+ return multi_rv3027+3028 return rv3029 3030 def consume_value(3031 self, ctx: Context, opts: cabc.Mapping[str, Parameter]10 unmodified lines3042 else:3043 value = self.flag_value3044 source = ParameterSource.COMMANDLINE3045 3046+ # A flag which is activated and has a flag_value set, should returns3047+ # the latter, unless the value comes from the explicitly sets default.3048 elif (3049+ self.is_flag3050+ and value is True3051+ and not self.is_bool_flag3052+ and self.flag_value is not None3053+ and source is not ParameterSource.DEFAULT3054+ ):3055+ value = self.flag_value3056+3057+ elif (3058 self.multiple3059 and value is not None3060 and any(v is _flag_needs_value for v in value)3061 ):117 unmodified linesmodified:src/click/exceptions.py+3 added-3 removed
113 unmodified lines114 self,115 message: str,116 ctx: Context | None = None,117 param: Parameter | None = None,118- param_hint: str | None = None,118+ param_hint: cabc.Sequence[str] | str | None = None,119 ) -> None:120 super().__init__(message, ctx)121 self.param = param122 self.param_hint = param_hint27 unmodified lines150 self,151 message: str | None = None,152 ctx: Context | None = None,153 param: Parameter | None = None,154- param_hint: str | None = None,154+ param_hint: cabc.Sequence[str] | str | None = None,155 param_type: str | None = None,156 ) -> None:157 super().__init__(message or "", ctx, param, param_hint)158 self.param_type = param_type159 160 def format_message(self) -> str:161 if self.param_hint is not None:162- param_hint: str | None = self.param_hint162+ param_hint: cabc.Sequence[str] | str | None = self.param_hint163 elif self.param is not None:164 param_hint = self.param.get_error_hint(self.ctx) # type: ignore165 else:166 param_hint = None142 unmodified linesmodified:src/click/shell_completion.py+21 added-1 removed
122 unmodified lines123 124 %(complete_func)s_setup;125 """126 127+# See ZshComplete.format_completion below, and issue #2703, before128+# changing this script.129+#130+# (TL;DR: _describe is picky about the format, but this Zsh script snippet131+# is already widely deployed. So freeze this script, and use clever-ish132+# handling of colons in ZshComplet.format_completion.)133 _SOURCE_ZSH = """\134 #compdef %(prog_name)s135 136 %(complete_func)s() {241 unmodified lines378 379 return args, incomplete380 381 def format_completion(self, item: CompletionItem) -> str:376- return f"{item.type}\n{item.value}\n{item.help if item.help else '_'}"382+ help_ = item.help or "_"383+ # The zsh completion script uses `_describe` on items with help384+ # texts (which splits the item help from the item value at the385+ # first unescaped colon) and `compadd` on items without help386+ # text (which uses the item value as-is and does not support387+ # colon escaping). So escape colons in the item value if and388+ # only if the item help is not the sentinel "_" value, as used389+ # by the completion script.390+ #391+ # (The zsh completion script is potentially widely deployed, and392+ # thus harder to fix than this method.)393+ #394+ # See issue #1812 and issue #2703 for further context.395+ value = item.value.replace(":", r"\:") if help_ != "_" else item.value396+ return f"{item.type}\n{value}\n{help_}"397 398 399 class FishComplete(ShellComplete):400 """Shell completion for Fish."""264 unmodified linesmodified:src/click/testing.py+12 added
97 unmodified lines98 self.output: io.BytesIO = io.BytesIO()99 self.stdout: io.BytesIO = BytesIOCopy(copy_to=self.output)100 self.stderr: io.BytesIO = BytesIOCopy(copy_to=self.output)101 102+ def __del__(self) -> None:103+ """104+ Guarantee that embedded file-like objects are closed in a105+ predictable order, protecting against races between106+ self.output being closed and other streams being flushed on close107 108+ .. versionadded:: 8.2.2109+ """110+ self.stderr.close()111+ self.stdout.close()112+ self.output.close()113+114+115 class _NamedTextIOWrapper(io.TextIOWrapper):116 def __init__(117 self, buffer: t.BinaryIO, name: str, mode: str, **kwargs: t.Any118 ) -> None:459 unmodified linesmodified:src/click/types.py+57 added-13 removed
659 unmodified lines660 661 class BoolParamType(ParamType):662 name = "boolean"663 664- def convert(665- self, value: t.Any, param: Parameter | None, ctx: Context | None666- ) -> t.Any:667- if value in {False, True}:668- return bool(value)664+ bool_states: dict[str, bool] = {665+ "1": True,666+ "0": False,667+ "yes": True,668+ "no": False,669+ "true": True,670+ "false": False,671+ "on": True,672+ "off": False,673+ "t": True,674+ "f": False,675+ "y": True,676+ "n": False,677+ # Absence of value is considered False.678+ "": False,679+ }680+ """A mapping of string values to boolean states.681 670- norm = value.strip().lower()682+ Mapping is inspired by :py:attr:`configparser.ConfigParser.BOOLEAN_STATES`683+ and extends it.684 672- if norm in {"1", "true", "t", "yes", "y", "on"}:673- return True685+ .. caution::686+ String values are lower-cased, as the ``str_to_bool`` comparison function687+ below is case-insensitive.688 675- if norm in {"0", "false", "f", "no", "n", "off"}:676- return False689+ .. warning::690+ The mapping is not exhaustive, and does not cover all possible boolean strings691+ representations. It will remains as it is to avoid endless bikeshedding.692 678- self.fail(679- _("{value!r} is not a valid boolean.").format(value=value), param, ctx680- )693+ Future work my be considered to make this mapping user-configurable from public694+ API.695+ """696 697+ @staticmethod698+ def str_to_bool(value: str | bool) -> bool | None:699+ """Convert a string to a boolean value.700+701+ If the value is already a boolean, it is returned as-is. If the value is a702+ string, it is stripped of whitespaces and lower-cased, then checked against703+ the known boolean states pre-defined in the `BoolParamType.bool_states` mapping704+ above.705+706+ Returns `None` if the value does not match any known boolean state.707+ """708+ if isinstance(value, bool):709+ return value710+ return BoolParamType.bool_states.get(value.strip().lower())711+712+ def convert(713+ self, value: t.Any, param: Parameter | None, ctx: Context | None714+ ) -> bool:715+ normalized = self.str_to_bool(value)716+ if normalized is None:717+ self.fail(718+ _(719+ "{value!r} is not a valid boolean. Recognized values: {states}"720+ ).format(value=value, states=", ".join(sorted(self.bool_states))),721+ param,722+ ctx,723+ )724+ return normalized725+726 def __repr__(self) -> str:727 return "BOOL"728 729 480 unmodified linesmodified:src/click/utils.py+1 added-1 removed
275 unmodified lines276 return277 278 # Convert non bytes/text into the native string type.279 if message is not None and not isinstance(message, (str, bytes, bytearray)):280- out: str | bytes | None = str(message)280+ out: str | bytes | bytearray | None = str(message)281 else:282 out = message283 284 if nl:343 unmodified linesmodified:tests/test_arguments.py-13 removed
196 unmodified lines197 else:198 assert result.return_value == expect199 200 201-def test_envvar_flag_value(runner):202- @click.command()203- # is_flag is implicitly true204- @click.option("--upper", flag_value="upper", envvar="UPPER")205- def cmd(upper):206- click.echo(upper)207- return upper208-209- # For whatever value of the `env` variable, if it exists, the flag should be `upper`210- result = runner.invoke(cmd, env={"UPPER": "whatever"})211- assert result.output.strip() == "upper"212-213-201 def test_nargs_envvar_only_if_values_empty(runner):202 @click.command()203 @click.argument("arg", envvar="X", nargs=-1)204 def cli(arg):257 unmodified linesmodified:tests/test_basic.py+9 added-5 removed
220 unmodified lines221 result = runner.invoke(cli, args, standalone_mode=False)222 assert result.return_value is expect223 224 225-@pytest.mark.parametrize("default", [True, False])226-@pytest.mark.parametrize(("args", "expect"), [(["--f"], True), ([], False)])225+@pytest.mark.parametrize(226+ ("default", "args", "expect"),227+ (228+ (True, ["--f"], True),229+ (True, [], True),230+ (False, ["--f"], True),231+ (False, [], False),232+ ),233+)234 def test_boolean_flag(runner, default, args, expect):235 @click.command()236 @click.option("--f", is_flag=True, default=default)237 def cli(f):238 return f239 233- if default:234- expect = not expect235-240 result = runner.invoke(cli, args, standalone_mode=False)241 assert result.return_value is expect242 243 415 unmodified linesmodified:tests/test_imports.py+16 added-15 removed
25 unmodified lines26 """27 28 ALLOWED_IMPORTS = {29 "__future__",30- "weakref",31- "os",32- "struct",30+ "codecs",31 "collections",32 "collections.abc",35- "sys",33+ "configparser",34 "contextlib",35+ "datetime",36+ "enum",37+ "errno",38+ "fcntl",39 "functools",38- "stat",39- "re",40- "codecs",40+ "gettext",41 "inspect",42- "itertools",42 "io",43+ "itertools",44+ "os",45+ "re",46+ "shutil",47+ "stat",48+ "struct",49+ "sys",50 "threading",45- "errno",46- "fcntl",47- "datetime",48- "enum",49- "typing",51 "types",51- "gettext",52- "shutil",52+ "typing",53+ "weakref",54 }55 56 if WIN:57 ALLOWED_IMPORTS.update(["ctypes", "ctypes.wintypes", "msvcrt", "time"])14 unmodified linesmodified:tests/test_options.py+326 added-19 removed
1+import enum2 import os3 import re4+import sys5 6+if sys.version_info < (3, 11):7+ enum.StrEnum = enum.Enum # type: ignore[assignment]8+9 import pytest10 11 import click12 from click import Option238 unmodified lines251 assert not result.exception252 assert result.output == "foo|bar\n"253 254 250-def test_trailing_blanks_boolean_envvar(runner):255+@pytest.mark.parametrize(256+ ("name", "value", "expected"),257+ (258+ # Lower-cased variations of value.259+ ("SHOUT", "true", True),260+ ("SHOUT", "false", False),261+ # Title-cased variations of value.262+ ("SHOUT", "True", True),263+ ("SHOUT", "False", False),264+ # Upper-cased variations of value.265+ ("SHOUT", "TRUE", True),266+ ("SHOUT", "FALSE", False),267+ # Random-cased variations of value.268+ ("SHOUT", "TruE", True),269+ ("SHOUT", "truE", True),270+ ("SHOUT", "FaLsE", False),271+ ("SHOUT", "falsE", False),272+ # Extra spaces around the value.273+ ("SHOUT", "true ", True),274+ ("SHOUT", " true", True),275+ ("SHOUT", " true ", True),276+ ("SHOUT", "false ", False),277+ ("SHOUT", " false", False),278+ ("SHOUT", " false ", False),279+ # Integer variations.280+ ("SHOUT", "1", True),281+ ("SHOUT", "0", False),282+ # Alternative states.283+ ("SHOUT", "t", True),284+ ("SHOUT", "f", False),285+ ("SHOUT", "y", True),286+ ("SHOUT", "n", False),287+ ("SHOUT", "yes", True),288+ ("SHOUT", "no", False),289+ ("SHOUT", "on", True),290+ ("SHOUT", "off", False),291+ # Blank value variations.292+ ("SHOUT", None, False),293+ ("SHOUT", "", False),294+ ("SHOUT", " ", False),295+ ("SHOUT", " ", False),296+ # Variable names are not stripped of spaces and so don't match the297+ # flag, which then naturraly takes its default value.298+ ("SHOUT ", "True", False),299+ ("SHOUT ", "False", False),300+ (" SHOUT ", "True", False),301+ (" SHOUT ", "False", False),302+ # Same for random and reverse environment variable names: they are not303+ # recognized by the option.304+ ("RANDOM", "True", False),305+ ("NO_SHOUT", "True", False),306+ ("NO_SHOUT", "False", False),307+ ),308+)309+def test_boolean_envvar_normalization(runner, name, value, expected):310 @click.command()311 @click.option("--shout/--no-shout", envvar="SHOUT")312 def cli(shout):313 click.echo(f"shout: {shout!r}")314 256- result = runner.invoke(cli, [], env={"SHOUT": " true "})315+ result = runner.invoke(cli, [], env={name: value})316 assert result.exit_code == 0258- assert result.output == "shout: True\n"317+ assert result.output == f"shout: {expected}\n"318 319 320+@pytest.mark.parametrize(321+ ("name", "value"),322+ (323+ ("SHOUT", "tr ue"),324+ ("SHOUT", "10"),325+ ("SHOUT", "01"),326+ ("SHOUT", "00"),327+ ("SHOUT", "11"),328+ ("SHOUT", "randomstring"),329+ ("SHOUT", "None"),330+ ),331+)332+def test_boolean_envvar_bad_values(runner, name, value):333+ @click.command()334+ @click.option("--shout/--no-shout", envvar="SHOUT")335+ def cli(shout):336+ click.echo(f"shout: {shout!r}")337+338+ result = runner.invoke(cli, [], env={name: value})339+ assert result.exit_code == 2340+ assert (341+ f"Invalid value for '--shout': {value!r} is not a valid boolean."342+ in result.output343+ )344+345+346 def test_multiple_default_help(runner):347 @click.command()348 @click.option("--arg1", multiple=True, default=("foo", "bar"), show_default=True)349 @click.option("--arg2", multiple=True, default=(1, 2), type=int, show_default=True)749 unmodified lines1099 assert param.type is click.INT1100 1101 1102 @pytest.mark.parametrize(1018- ("opts", "pass_flag", "expected"),1103+ ("opt_params", "pass_flag", "expected"),1104 [1020- pytest.param({"type": bool}, False, "False"),1021- pytest.param({"type": bool}, True, "True"),1022- pytest.param({"type": bool, "default": True}, False, "True"),1023- pytest.param({"type": bool, "default": True}, True, "False"),1024- pytest.param({"type": click.BOOL}, False, "False"),1025- pytest.param({"type": click.BOOL}, True, "True"),1026- pytest.param({"type": click.BOOL, "default": True}, False, "True"),1027- pytest.param({"type": click.BOOL, "default": True}, True, "False"),1028- pytest.param({"type": str}, False, ""),1029- pytest.param({"type": str}, True, "True"),1105+ # Effect of the presence/absence of flag depending on type1106+ ({"type": bool}, False, False),1107+ ({"type": bool}, True, True),1108+ ({"type": click.BOOL}, False, False),1109+ ({"type": click.BOOL}, True, True),1110+ ({"type": str}, False, "False"),1111+ ({"type": str}, True, "True"),1112+ # Effects of default value1113+ ({"type": bool, "default": True}, False, True),1114+ ({"type": bool, "default": True}, True, True),1115+ ({"type": bool, "default": False}, False, False),1116+ ({"type": bool, "default": False}, True, True),1117+ ({"type": bool, "default": None}, False, False),1118+ ({"type": bool, "default": None}, True, True),1119+ ({"type": click.BOOL, "default": True}, False, True),1120+ ({"type": click.BOOL, "default": True}, True, True),1121+ ({"type": click.BOOL, "default": False}, False, False),1122+ ({"type": click.BOOL, "default": False}, True, True),1123+ ({"type": click.BOOL, "default": None}, False, False),1124+ ({"type": click.BOOL, "default": None}, True, True),1125+ ({"type": str, "default": True}, False, "True"),1126+ ({"type": str, "default": True}, True, "True"),1127+ ({"type": str, "default": False}, False, "False"),1128+ ({"type": str, "default": False}, True, "True"),1129+ ({"type": str, "default": "foo"}, False, "foo"),1130+ ({"type": str, "default": "foo"}, True, "foo"),1131+ ({"type": str, "default": None}, False, "False"),1132+ ({"type": str, "default": None}, True, "True"),1133+ # Effects of flag_value1134+ ({"type": bool, "flag_value": True}, False, False),1135+ ({"type": bool, "flag_value": True}, True, True),1136+ ({"type": bool, "flag_value": False}, False, False),1137+ ({"type": bool, "flag_value": False}, True, False),1138+ ({"type": bool, "flag_value": None}, False, False),1139+ ({"type": bool, "flag_value": None}, True, True),1140+ ({"type": click.BOOL, "flag_value": True}, False, False),1141+ ({"type": click.BOOL, "flag_value": True}, True, True),1142+ ({"type": click.BOOL, "flag_value": False}, False, False),1143+ ({"type": click.BOOL, "flag_value": False}, True, False),1144+ ({"type": click.BOOL, "flag_value": None}, False, False),1145+ ({"type": click.BOOL, "flag_value": None}, True, True),1146+ ({"type": str, "flag_value": True}, False, "False"),1147+ ({"type": str, "flag_value": True}, True, "True"),1148+ ({"type": str, "flag_value": False}, False, "False"),1149+ ({"type": str, "flag_value": False}, True, "False"),1150+ ({"type": str, "flag_value": "foo"}, False, "False"),1151+ ({"type": str, "flag_value": "foo"}, True, "foo"),1152+ ({"type": str, "flag_value": None}, False, "False"),1153+ ({"type": str, "flag_value": None}, True, "True"),1154+ # Not passing --foo returns the default value as-is1155+ ({"type": bool, "default": True, "flag_value": True}, False, True),1156+ ({"type": bool, "default": True, "flag_value": False}, False, True),1157+ ({"type": bool, "default": False, "flag_value": True}, False, False),1158+ ({"type": bool, "default": False, "flag_value": False}, False, False),1159+ ({"type": bool, "default": None, "flag_value": True}, False, False),1160+ ({"type": bool, "default": None, "flag_value": False}, False, False),1161+ ({"type": str, "default": True, "flag_value": True}, False, "True"),1162+ ({"type": str, "default": True, "flag_value": False}, False, "True"),1163+ ({"type": str, "default": False, "flag_value": True}, False, "False"),1164+ ({"type": str, "default": False, "flag_value": False}, False, "False"),1165+ ({"type": str, "default": "foo", "flag_value": True}, False, "foo"),1166+ ({"type": str, "default": "foo", "flag_value": False}, False, "foo"),1167+ ({"type": str, "default": "foo", "flag_value": "bar"}, False, "foo"),1168+ ({"type": str, "default": "foo", "flag_value": None}, False, "foo"),1169+ ({"type": str, "default": None, "flag_value": True}, False, "False"),1170+ ({"type": str, "default": None, "flag_value": False}, False, "False"),1171+ # Passing --foo returns the explicitly set flag_value1172+ ({"type": bool, "default": True, "flag_value": True}, True, True),1173+ ({"type": bool, "default": True, "flag_value": False}, True, False),1174+ ({"type": bool, "default": False, "flag_value": True}, True, True),1175+ ({"type": bool, "default": False, "flag_value": False}, True, False),1176+ ({"type": bool, "default": None, "flag_value": True}, True, True),1177+ ({"type": bool, "default": None, "flag_value": False}, True, False),1178+ ({"type": str, "default": True, "flag_value": True}, True, "True"),1179+ ({"type": str, "default": True, "flag_value": False}, True, "False"),1180+ ({"type": str, "default": False, "flag_value": True}, True, "True"),1181+ ({"type": str, "default": False, "flag_value": False}, True, "False"),1182+ ({"type": str, "default": "foo", "flag_value": True}, True, "True"),1183+ ({"type": str, "default": "foo", "flag_value": False}, True, "False"),1184+ ({"type": str, "default": "foo", "flag_value": "bar"}, True, "bar"),1185+ ({"type": str, "default": "foo", "flag_value": None}, True, "foo"),1186+ ({"type": str, "default": None, "flag_value": True}, True, "True"),1187+ ({"type": str, "default": None, "flag_value": False}, True, "False"),1188 ],1189 )1032-def test_flag_value_is_correctly_set(runner, opts, pass_flag, expected):1190+def test_flag_value_and_default(runner, opt_params, pass_flag, expected):1191 @click.command()1192+ @click.option("--foo", is_flag=True, **opt_params)1193+ def cmd(foo):1194+ click.echo(repr(foo))1195+1196+ result = runner.invoke(cmd, ["--foo"] if pass_flag else [])1197+ assert result.output == f"{expected!r}\n"1198+1199+1200+@pytest.mark.parametrize(1201+ "opts",1202+ [1203+ {"type": bool, "default": "foo"},1204+ {"type": bool, "flag_value": "foo"},1205+ {"type": click.BOOL, "default": "foo"},1206+ {"type": click.BOOL, "flag_value": "foo"},1207+ ],1208+)1209+def test_invalid_flag_definition(runner, opts):1210+ @click.command()1211 @click.option("--foo", is_flag=True, **opts)1212 def cmd(foo):1213 click.echo(foo)1214 1038- result = runner.invoke(cmd, ["--foo"] if pass_flag else [])1039- assert result.output == f"{expected}\n"1215+ result = runner.invoke(cmd, ["--foo"])1216+ assert (1217+ "Error: Invalid value for '--foo': 'foo' is not a valid boolean"1218+ in result.output1219+ )1220 1221 1222 @pytest.mark.parametrize(1223+ ("flag_value", "envvar_value", "expected"),1224+ [1225+ # Envvar is set to false, so the flag default value is returned.1226+ ("bar", "False", "False"),1227+ # Same as above with alternative states and blank values.1228+ ("bar", "0", "False"),1229+ ("bar", "f", "False"),1230+ ("bar", "", "False"),1231+ # Envvar is set to true, so the flag_value is returned.1232+ ("bar", "True", "bar"),1233+ ("bar", "1", "bar"),1234+ ("bar", "t", "bar"),1235+ # So far we have the same cases as the test_flag_value_and_default1236+ # test case. Now instead of passing a boolean-like value, let's use1237+ # the flag_value as the envvar value.1238+ ("bar", "bar", "bar"),1239+ # flag_value is expected to be the exact same in the envvar for the flag to be1240+ # activated.1241+ ("bar", " bar ", "False"),1242+ ("bar", "BAR", "False"),1243+ ("bar", "random", "False"),1244+ ("bar", "bar random", "False"),1245+ ("bar", "random bar", "False"),1246+ ("BAR", "BAR", "BAR"),1247+ ("BAR", "bar", "False"),1248+ (" bar ", " bar ", " bar "),1249+ (" bar ", "bar", "False"),1250+ (" bar ", "BAR", "False"),1251+ ],1252+)1253+def test_envvar_flag_value(runner, flag_value, envvar_value, expected):1254+ """Ensure that flag_value is recognized by the envvar."""1255+1256+ @click.command()1257+ @click.option(1258+ "--upper", type=str, is_flag=True, flag_value=flag_value, envvar="UPPER"1259+ )1260+ def cmd(upper):1261+ click.echo(repr(upper))1262+1263+ result = runner.invoke(cmd, env={"UPPER": envvar_value})1264+ assert result.exit_code == 01265+ assert result.output == f"{expected!r}\n"1266+1267+1268+@pytest.mark.parametrize(1269 ("option", "expected"),1270 [1271 # Not boolean flags1272 pytest.param(Option(["-a"], type=int), False, id="int option"),6 unmodified lines1279 pytest.param(Option(["-a/-A"]), True, id="secondary option [implicit flag]"),1280 pytest.param(Option(["-a"], flag_value=True), True, id="bool flag_value"),1281 ],1282 )1057-def test_is_bool_flag_is_correctly_set(option, expected):1283+def test_bool_flag_auto_detection(option, expected):1284 assert option.is_bool_flag is expected1285 1286 1287 @pytest.mark.parametrize(23 unmodified lines1311 result = runner.invoke(cmd)1312 assert result.exit_code == 01313 1314 1315+class HashType(enum.Enum):1316+ MD5 = enum.auto()1317+ SHA1 = enum.auto()1318+1319+1320+class Number(enum.IntEnum):1321+ ONE = enum.auto()1322+ TWO = enum.auto()1323+1324+1325+class Letter(enum.StrEnum):1326+ A = enum.auto()1327+ B = enum.auto()1328+1329+1330+class Color(enum.Flag):1331+ RED = enum.auto()1332+ GREEN = enum.auto()1333+ BLUE = enum.auto()1334+1335+1336+class ColorInt(enum.IntFlag):1337+ RED = enum.auto()1338+ GREEN = enum.auto()1339+ BLUE = enum.auto()1340+1341+1342 @pytest.mark.parametrize(1343 ("choices", "metavars"),1344 [1345 pytest.param(["foo", "bar"], "[TEXT]", id="text choices"),1346 pytest.param([1, 2], "[INTEGER]", id="int choices"),1347 pytest.param([1.0, 2.0], "[FLOAT]", id="float choices"),1348 pytest.param([True, False], "[BOOLEAN]", id="bool choices"),1349 pytest.param(["foo", 1], "[TEXT|INTEGER]", id="text/int choices"),1350+ pytest.param(HashType, "[HASHTYPE]", id="enum choices"),1351+ pytest.param(Number, "[NUMBER]", id="int enum choices"),1352+ pytest.param(Letter, "[LETTER]", id="str enum choices"),1353+ pytest.param(Color, "[COLOR]", id="flag enum choices"),1354+ pytest.param(ColorInt, "[COLORINT]", id="int flag enum choices"),1355 ],1356 )1357 def test_usage_show_choices(runner, choices, metavars):1358 """When show_choices=False is set, the --help output14 unmodified lines1373 def cli_without_choices(g):1374 pass1375 1376 result = runner.invoke(cli_with_choices, ["--help"])1119- assert f"[{'|'.join([str(i) for i in choices])}]" in result.output1377+ assert (1378+ f"[{'|'.join(i.name if isinstance(i, enum.Enum) else str(i) for i in choices)}]"1379+ in result.output1380+ )1381 1382 result = runner.invoke(cli_without_choices, ["--help"])1383 assert metavars in result.output1384 1385 1386 @pytest.mark.parametrize(1387+ ("choices", "default", "default_string"),1388+ [1389+ (["foo", "bar"], "bar", "bar"),1390+ # The default value is not enforced to be in the choices.1391+ (["foo", "bar"], "random", "random"),1392+ # None cannot be a default value as-is: it left the default value as unset.1393+ (["foo", "bar"], None, None),1394+ ([0, 1], 0, "0"),1395+ # Values are not coerced to the type of the choice, even if equivalent.1396+ ([0, 1], 0.0, "0.0"),1397+ ([1, 2], 2, "2"),1398+ ([1.0, 2.0], 2, "2"),1399+ ([1.0, 2.0], 2.0, "2.0"),1400+ ([True, False], True, "True"),1401+ ([True, False], False, "False"),1402+ (["foo", 1], "foo", "foo"),1403+ (["foo", 1], 1, "1"),1404+ # Enum choices are rendered as their names.1405+ # See: https://github.com/pallets/click/issues/29111406+ (HashType, HashType.SHA1, "SHA1"),1407+ # Enum choices allow defaults strings that are their names.1408+ (HashType, "SHA1", "SHA1"),1409+ (Number, Number.TWO, "TWO"),1410+ (Letter, Letter.B, "B"),1411+ (Color, Color.GREEN, "GREEN"),1412+ (ColorInt, ColorInt.GREEN, "GREEN"),1413+ ],1414+)1415+def test_choice_default_rendering(runner, choices, default, default_string):1416+ @click.command()1417+ @click.option("-g", type=click.Choice(choices), default=default, show_default=True)1418+ def cli_with_choices(g):1419+ pass1420+1421+ # Check that the default value is kept normalized to the type of the choice.1422+ assert cli_with_choices.params[0].default == default1423+1424+ result = runner.invoke(cli_with_choices, ["--help"])1425+ extra_usage = f"[default: {default_string}]"1426+ if default_string is None:1427+ assert extra_usage not in result.output1428+ else:1429+ assert extra_usage in result.output1430+1431+1432+@pytest.mark.parametrize(1433 "opts_one,opts_two",1434 [1435 # No duplicate shortnames1436 (19 unmodified linesmodified:tests/test_shell_completion.py+75 added
1+import textwrap2 import warnings3+from collections.abc import Mapping4 5 import pytest6 7 import click.shell_completion347 unmodified lines355 result = runner.invoke(cli, env=env)356 assert result.output == expect357 358 359+@pytest.mark.parametrize(360+ ("env", "expect"),361+ [362+ (363+ {"COMP_WORDS": "", "COMP_CWORD": "0"},364+ textwrap.dedent(365+ """\366+ plain367+ a368+ _369+ plain370+ b371+ bee372+ plain373+ c\\:d374+ cee:dee375+ plain376+ c:e377+ _378+ """379+ ),380+ ),381+ (382+ {"COMP_WORDS": "a c", "COMP_CWORD": "1"},383+ textwrap.dedent(384+ """\385+ plain386+ c\\:d387+ cee:dee388+ plain389+ c:e390+ _391+ """392+ ),393+ ),394+ (395+ {"COMP_WORDS": "a c:", "COMP_CWORD": "1"},396+ textwrap.dedent(397+ """\398+ plain399+ c\\:d400+ cee:dee401+ plain402+ c:e403+ _404+ """405+ ),406+ ),407+ ],408+)409 @pytest.mark.usefixtures("_patch_for_completion")410+def test_zsh_full_complete_with_colons(411+ runner, env: Mapping[str, str], expect: str412+) -> None:413+ cli = Group(414+ "cli",415+ commands=[416+ Command("a"),417+ Command("b", help="bee"),418+ Command("c:d", help="cee:dee"),419+ Command("c:e"),420+ ],421+ )422+ result = runner.invoke(423+ cli,424+ env={425+ **env,426+ "_CLI_COMPLETE": "zsh_complete",427+ },428+ )429+ assert result.output == expect430+431+432+@pytest.mark.usefixtures("_patch_for_completion")433 def test_context_settings(runner):434 def complete(ctx, param, incomplete):435 return ctx.obj["choices"]436 111 unmodified linesmodified:tests/test_testing.py+2 added-4 removed
446 unmodified lines447 runner = CliRunner()448 449 with runner.isolation() as (_, err, _):450 click.echo("\udce2", err=True, nl=False)451+ assert err.getvalue() == b"\\udce2"452 452- assert err.getvalue() == b"\\udce2"453 454-454 def test_isolation_flushes_unflushed_stderr():455 """An un-flushed write to stderr, as with `print(..., file=sys.stderr)`, will end up456 flushed by the runner at end of invocation.457 """458 runner = CliRunner()459 460 with runner.isolation() as (_, err, _):461 click.echo("\udce2", err=True, nl=False)462+ assert err.getvalue() == b"\\udce2"463 464- assert err.getvalue() == b"\\udce2"465-464 @click.command()465 def cli():466 # set end="", flush=False so that it's totally clear that we won't get any467 # auto-flush behaviors4 unmodified linesmodified:tests/test_types.py+6 added-1 removed
224 unmodified lines225 )226 def test_file_surrogates(type, tmp_path):227 path = tmp_path / "\udcff"228 229+ # - common case: �': No such file or directory230+ # - special case: Illegal byte sequence231+ # The spacial case is seen with rootless Podman. The root cause is most232+ # likely that the path is handled by a user-space program (FUSE).233+ match = r"(�': No such file or directory|Illegal byte sequence)"229- with pytest.raises(click.BadParameter, match="�': No such file or directory"):234+ with pytest.raises(click.BadParameter, match=match):235 type.convert(path, None, None)236 237 238 def test_file_error_surrogates():19 unmodified linesmodified:.pre-commit-config.yaml+2 added-2 removed
1 repos:2 - repo: https://github.com/astral-sh/ruff-pre-commit3- rev: 24e02b24b8ab2b7c76225602d13fa60e12d114e6 # frozen: v0.11.93+ rev: 9aeda5d1f4bbd212c557da1ea78eca9e8c829e19 # frozen: v0.11.134 hooks:5 - id: ruff6 - id: ruff-format7 - repo: https://github.com/astral-sh/uv-pre-commit8- rev: 14ac15b122e538e407d036ff45e3895b7cf4a2bf # frozen: 0.7.38+ rev: a621b109bab2e7e832d98c88fd3e83399f4e6657 # frozen: 0.7.129 hooks:10 - id: uv-lock11 - repo: https://github.com/pre-commit/pre-commit-hooks12 rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.06 unmodified linesmodified:CHANGES.rst+12 added-2 removed
1 .. currentmodule:: click2 3-Version 8.2.03+Version 8.2.24 -------------5 6 Unreleased7 8+- Fix reconciliation of `default`, `flag_value` and `type` parameters for9+ flag options, as well as parsing and normalization of environment variables.10+ :issue:`2952` :pr:`2956`11+- Fix typing issue in ``BadParameter`` and ``MissingParameter`` exceptions for the12+ parameter ``param_hint`` that did not allow for a sequence of string where the13+ underlying functino ``_join_param_hints`` allows for it. :issue:`2777` :pr:`2990`14+- Use the value of ``Enum`` choices to render their default value in help15+ screen. Refs :issue:`2911` :pr:`3004`16+- Fix completion for the Z shell (``zsh``) for completion items containing17+ colons. :issue:`2703` :pr:`2846`8-- Don't include envvar in error hint when not configured. :issue:`2971`18+- Don't include envvar in error hint when not configured. :issue:`2971` :pr:`2972`19 20 Version 8.2.121 -------------22 1242 unmodified linesmodified:pyproject.toml-5 removed
138 unmodified lines139 [tool.ruff.lint.isort]140 force-single-line = true141 order-by-type = false142 143-[tool.gha-update]144-tag-only = [145- "slsa-framework/slsa-github-generator",146-]147-143 [tool.tox]144 env_list = [145 "py3.13", "py3.12", "py3.11", "py3.10",146 "pypy3.11",62 unmodified linesmodified:README.md+3 added-1 removed
1-# $ click_1+<div align="center"><img src="https://raw.githubusercontent.com/pallets/click/refs/heads/stable/docs/_static/click-name.svg" alt="" height="150"></div>2 3+# Click4+5 Click is a Python package for creating beautiful command line interfaces6 in a composable way with as little code as necessary. It's the "Command7 Line Interface Creation Kit". It's highly configurable but comes with8 sensible defaults out of the box.54 unmodified linesmodified:uv.lock+100 added-89 removed
40 unmodified lines41 ]42 43 [[package]]44 name = "cachetools"45-version = "5.5.2"45+version = "6.0.0"46 source = { registry = "https://pypi.org/simple" }47-sdist = { url = "https://files.pythonhosted.org/packages/6c/81/3747dad6b14fa2cf53fcf10548cf5aea6913e96fab41a3c198676f8948a5/cachetools-5.5.2.tar.gz", hash = "sha256:1a661caa9175d26759571b2e19580f9d6393969e5dfca11fdb1f947a23e640d4", size = 28380, upload-time = "2025-02-20T21:01:19.524Z" }47+sdist = { url = "https://files.pythonhosted.org/packages/c0/b0/f539a1ddff36644c28a61490056e5bae43bd7386d9f9c69beae2d7e7d6d1/cachetools-6.0.0.tar.gz", hash = "sha256:f225782b84438f828328fc2ad74346522f27e5b1440f4e9fd18b20ebfd1aa2cf", size = 30160, upload-time = "2025-05-23T20:01:13.076Z" }48 wheels = [49- { url = "https://files.pythonhosted.org/packages/72/76/20fa66124dbe6be5cafeb312ece67de6b61dd91a0247d1ea13db4ebb33c2/cachetools-5.5.2-py3-none-any.whl", hash = "sha256:d26a22bcc62eb95c3beabd9f1ee5e820d3d2704fe2967cbe350e20c8ffcd3f0a", size = 10080, upload-time = "2025-02-20T21:01:16.647Z" },49+ { url = "https://files.pythonhosted.org/packages/6a/c3/8bb087c903c95a570015ce84e0c23ae1d79f528c349cbc141b5c4e250293/cachetools-6.0.0-py3-none-any.whl", hash = "sha256:82e73ba88f7b30228b5507dce1a1f878498fc669d972aef2dde4f3a3c24f103e", size = 10964, upload-time = "2025-05-23T20:01:11.323Z" },50 ]51 52 [[package]]53 name = "certifi"252 unmodified lines306 ]307 308 [[package]]309 name = "identify"310-version = "2.6.10"310+version = "2.6.12"311 source = { registry = "https://pypi.org/simple" }312-sdist = { url = "https://files.pythonhosted.org/packages/0c/83/b6ea0334e2e7327084a46aaaf71f2146fc061a192d6518c0d020120cd0aa/identify-2.6.10.tar.gz", hash = "sha256:45e92fd704f3da71cc3880036633f48b4b7265fd4de2b57627cb157216eb7eb8", size = 99201, upload-time = "2025-04-19T15:10:38.32Z" }312+sdist = { url = "https://files.pythonhosted.org/packages/a2/88/d193a27416618628a5eea64e3223acd800b40749a96ffb322a9b55a49ed1/identify-2.6.12.tar.gz", hash = "sha256:d8de45749f1efb108badef65ee8386f0f7bb19a7f26185f74de6367bffbaf0e6", size = 99254, upload-time = "2025-05-23T20:37:53.3Z" }313 wheels = [314- { url = "https://files.pythonhosted.org/packages/2b/d3/85feeba1d097b81a44bcffa6a0beab7b4dfffe78e82fc54978d3ac380736/identify-2.6.10-py2.py3-none-any.whl", hash = "sha256:5f34248f54136beed1a7ba6a6b5c4b6cf21ff495aac7c359e1ef831ae3b8ab25", size = 99101, upload-time = "2025-04-19T15:10:36.701Z" },314+ { url = "https://files.pythonhosted.org/packages/7a/cd/18f8da995b658420625f7ef13f037be53ae04ec5ad33f9b718240dcfd48c/identify-2.6.12-py2.py3-none-any.whl", hash = "sha256:ad9672d5a72e0d2ff7c5c8809b62dfa60458626352fb0eb7b55e69bdc45334a2", size = 99145, upload-time = "2025-05-23T20:37:51.495Z" },315 ]316 317 [[package]]318 name = "idna"126 unmodified lines445 ]446 447 [[package]]448 name = "mypy"449-version = "1.15.0"449+version = "1.16.0"450 source = { registry = "https://pypi.org/simple" }451 dependencies = [452 { name = "mypy-extensions" },453+ { name = "pathspec" },454 { name = "tomli", marker = "python_full_version < '3.11'" },455 { name = "typing-extensions" },456 ]456-sdist = { url = "https://files.pythonhosted.org/packages/ce/43/d5e49a86afa64bd3839ea0d5b9c7103487007d728e1293f52525d6d5486a/mypy-1.15.0.tar.gz", hash = "sha256:404534629d51d3efea5c800ee7c42b72a6554d6c400e6a79eafe15d11341fd43", size = 3239717, upload-time = "2025-02-05T03:50:34.655Z" }457+sdist = { url = "https://files.pythonhosted.org/packages/d4/38/13c2f1abae94d5ea0354e146b95a1be9b2137a0d506728e0da037c4276f6/mypy-1.16.0.tar.gz", hash = "sha256:84b94283f817e2aa6350a14b4a8fb2a35a53c286f97c9d30f53b63620e7af8ab", size = 3323139, upload-time = "2025-05-29T13:46:12.532Z" }458 wheels = [458- { url = "https://files.pythonhosted.org/packages/68/f8/65a7ce8d0e09b6329ad0c8d40330d100ea343bd4dd04c4f8ae26462d0a17/mypy-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:979e4e1a006511dacf628e36fadfecbcc0160a8af6ca7dad2f5025529e082c13", size = 10738433, upload-time = "2025-02-05T03:49:29.145Z" },459- { url = "https://files.pythonhosted.org/packages/b4/95/9c0ecb8eacfe048583706249439ff52105b3f552ea9c4024166c03224270/mypy-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c4bb0e1bd29f7d34efcccd71cf733580191e9a264a2202b0239da95984c5b559", size = 9861472, upload-time = "2025-02-05T03:49:16.986Z" },460- { url = "https://files.pythonhosted.org/packages/84/09/9ec95e982e282e20c0d5407bc65031dfd0f0f8ecc66b69538296e06fcbee/mypy-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be68172e9fd9ad8fb876c6389f16d1c1b5f100ffa779f77b1fb2176fcc9ab95b", size = 11611424, upload-time = "2025-02-05T03:49:46.908Z" },461- { url = "https://files.pythonhosted.org/packages/78/13/f7d14e55865036a1e6a0a69580c240f43bc1f37407fe9235c0d4ef25ffb0/mypy-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c7be1e46525adfa0d97681432ee9fcd61a3964c2446795714699a998d193f1a3", size = 12365450, upload-time = "2025-02-05T03:50:05.89Z" },462- { url = "https://files.pythonhosted.org/packages/48/e1/301a73852d40c241e915ac6d7bcd7fedd47d519246db2d7b86b9d7e7a0cb/mypy-1.15.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2e2c2e6d3593f6451b18588848e66260ff62ccca522dd231cd4dd59b0160668b", size = 12551765, upload-time = "2025-02-05T03:49:33.56Z" },463- { url = "https://files.pythonhosted.org/packages/77/ba/c37bc323ae5fe7f3f15a28e06ab012cd0b7552886118943e90b15af31195/mypy-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:6983aae8b2f653e098edb77f893f7b6aca69f6cffb19b2cc7443f23cce5f4828", size = 9274701, upload-time = "2025-02-05T03:49:38.981Z" },464- { url = "https://files.pythonhosted.org/packages/03/bc/f6339726c627bd7ca1ce0fa56c9ae2d0144604a319e0e339bdadafbbb599/mypy-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2922d42e16d6de288022e5ca321cd0618b238cfc5570e0263e5ba0a77dbef56f", size = 10662338, upload-time = "2025-02-05T03:50:17.287Z" },465- { url = "https://files.pythonhosted.org/packages/e2/90/8dcf506ca1a09b0d17555cc00cd69aee402c203911410136cd716559efe7/mypy-1.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2ee2d57e01a7c35de00f4634ba1bbf015185b219e4dc5909e281016df43f5ee5", size = 9787540, upload-time = "2025-02-05T03:49:51.21Z" },466- { url = "https://files.pythonhosted.org/packages/05/05/a10f9479681e5da09ef2f9426f650d7b550d4bafbef683b69aad1ba87457/mypy-1.15.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:973500e0774b85d9689715feeffcc980193086551110fd678ebe1f4342fb7c5e", size = 11538051, upload-time = "2025-02-05T03:50:20.885Z" },467- { url = "https://files.pythonhosted.org/packages/e9/9a/1f7d18b30edd57441a6411fcbc0c6869448d1a4bacbaee60656ac0fc29c8/mypy-1.15.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a95fb17c13e29d2d5195869262f8125dfdb5c134dc8d9a9d0aecf7525b10c2c", size = 12286751, upload-time = "2025-02-05T03:49:42.408Z" },468- { url = "https://files.pythonhosted.org/packages/72/af/19ff499b6f1dafcaf56f9881f7a965ac2f474f69f6f618b5175b044299f5/mypy-1.15.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1905f494bfd7d85a23a88c5d97840888a7bd516545fc5aaedff0267e0bb54e2f", size = 12421783, upload-time = "2025-02-05T03:49:07.707Z" },469- { url = "https://files.pythonhosted.org/packages/96/39/11b57431a1f686c1aed54bf794870efe0f6aeca11aca281a0bd87a5ad42c/mypy-1.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:c9817fa23833ff189db061e6d2eff49b2f3b6ed9856b4a0a73046e41932d744f", size = 9265618, upload-time = "2025-02-05T03:49:54.581Z" },470- { url = "https://files.pythonhosted.org/packages/98/3a/03c74331c5eb8bd025734e04c9840532226775c47a2c39b56a0c8d4f128d/mypy-1.15.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:aea39e0583d05124836ea645f412e88a5c7d0fd77a6d694b60d9b6b2d9f184fd", size = 10793981, upload-time = "2025-02-05T03:50:28.25Z" },471- { url = "https://files.pythonhosted.org/packages/f0/1a/41759b18f2cfd568848a37c89030aeb03534411eef981df621d8fad08a1d/mypy-1.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2f2147ab812b75e5b5499b01ade1f4a81489a147c01585cda36019102538615f", size = 9749175, upload-time = "2025-02-05T03:50:13.411Z" },472- { url = "https://files.pythonhosted.org/packages/12/7e/873481abf1ef112c582db832740f4c11b2bfa510e829d6da29b0ab8c3f9c/mypy-1.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce436f4c6d218a070048ed6a44c0bbb10cd2cc5e272b29e7845f6a2f57ee4464", size = 11455675, upload-time = "2025-02-05T03:50:31.421Z" },473- { url = "https://files.pythonhosted.org/packages/b3/d0/92ae4cde706923a2d3f2d6c39629134063ff64b9dedca9c1388363da072d/mypy-1.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8023ff13985661b50a5928fc7a5ca15f3d1affb41e5f0a9952cb68ef090b31ee", size = 12410020, upload-time = "2025-02-05T03:48:48.705Z" },474- { url = "https://files.pythonhosted.org/packages/46/8b/df49974b337cce35f828ba6fda228152d6db45fed4c86ba56ffe442434fd/mypy-1.15.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1124a18bc11a6a62887e3e137f37f53fbae476dc36c185d549d4f837a2a6a14e", size = 12498582, upload-time = "2025-02-05T03:49:03.628Z" },475- { url = "https://files.pythonhosted.org/packages/13/50/da5203fcf6c53044a0b699939f31075c45ae8a4cadf538a9069b165c1050/mypy-1.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:171a9ca9a40cd1843abeca0e405bc1940cd9b305eaeea2dda769ba096932bb22", size = 9366614, upload-time = "2025-02-05T03:50:00.313Z" },476- { url = "https://files.pythonhosted.org/packages/6a/9b/fd2e05d6ffff24d912f150b87db9e364fa8282045c875654ce7e32fffa66/mypy-1.15.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:93faf3fdb04768d44bf28693293f3904bbb555d076b781ad2530214ee53e3445", size = 10788592, upload-time = "2025-02-05T03:48:55.789Z" },477- { url = "https://files.pythonhosted.org/packages/74/37/b246d711c28a03ead1fd906bbc7106659aed7c089d55fe40dd58db812628/mypy-1.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:811aeccadfb730024c5d3e326b2fbe9249bb7413553f15499a4050f7c30e801d", size = 9753611, upload-time = "2025-02-05T03:48:44.581Z" },478- { url = "https://files.pythonhosted.org/packages/a6/ac/395808a92e10cfdac8003c3de9a2ab6dc7cde6c0d2a4df3df1b815ffd067/mypy-1.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98b7b9b9aedb65fe628c62a6dc57f6d5088ef2dfca37903a7d9ee374d03acca5", size = 11438443, upload-time = "2025-02-05T03:49:25.514Z" },479- { url = "https://files.pythonhosted.org/packages/d2/8b/801aa06445d2de3895f59e476f38f3f8d610ef5d6908245f07d002676cbf/mypy-1.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43a7682e24b4f576d93072216bf56eeff70d9140241f9edec0c104d0c515036", size = 12402541, upload-time = "2025-02-05T03:49:57.623Z" },480- { url = "https://files.pythonhosted.org/packages/c7/67/5a4268782eb77344cc613a4cf23540928e41f018a9a1ec4c6882baf20ab8/mypy-1.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:baefc32840a9f00babd83251560e0ae1573e2f9d1b067719479bfb0e987c6357", size = 12494348, upload-time = "2025-02-05T03:48:52.361Z" },481- { url = "https://files.pythonhosted.org/packages/83/3e/57bb447f7bbbfaabf1712d96f9df142624a386d98fb026a761532526057e/mypy-1.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b9378e2c00146c44793c98b8d5a61039a048e31f429fb0eb546d93f4b000bedf", size = 9373648, upload-time = "2025-02-05T03:49:11.395Z" },482- { url = "https://files.pythonhosted.org/packages/09/4e/a7d65c7322c510de2c409ff3828b03354a7c43f5a8ed458a7a131b41c7b9/mypy-1.15.0-py3-none-any.whl", hash = "sha256:5469affef548bd1895d86d3bf10ce2b44e33d86923c29e4d675b3e323437ea3e", size = 2221777, upload-time = "2025-02-05T03:50:08.348Z" },459+ { url = "https://files.pythonhosted.org/packages/64/5e/a0485f0608a3d67029d3d73cec209278b025e3493a3acfda3ef3a88540fd/mypy-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7909541fef256527e5ee9c0a7e2aeed78b6cda72ba44298d1334fe7881b05c5c", size = 10967416, upload-time = "2025-05-29T13:34:17.783Z" },460+ { url = "https://files.pythonhosted.org/packages/4b/53/5837c221f74c0d53a4bfc3003296f8179c3a2a7f336d7de7bbafbe96b688/mypy-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e71d6f0090c2256c713ed3d52711d01859c82608b5d68d4fa01a3fe30df95571", size = 10087654, upload-time = "2025-05-29T13:32:37.878Z" },461+ { url = "https://files.pythonhosted.org/packages/29/59/5fd2400352c3093bed4c09017fe671d26bc5bb7e6ef2d4bf85f2a2488104/mypy-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:936ccfdd749af4766be824268bfe22d1db9eb2f34a3ea1d00ffbe5b5265f5491", size = 11875192, upload-time = "2025-05-29T13:34:54.281Z" },462+ { url = "https://files.pythonhosted.org/packages/ad/3e/4bfec74663a64c2012f3e278dbc29ffe82b121bc551758590d1b6449ec0c/mypy-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4086883a73166631307fdd330c4a9080ce24913d4f4c5ec596c601b3a4bdd777", size = 12612939, upload-time = "2025-05-29T13:33:14.766Z" },463+ { url = "https://files.pythonhosted.org/packages/88/1f/fecbe3dcba4bf2ca34c26ca016383a9676711907f8db4da8354925cbb08f/mypy-1.16.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:feec38097f71797da0231997e0de3a58108c51845399669ebc532c815f93866b", size = 12874719, upload-time = "2025-05-29T13:21:52.09Z" },464+ { url = "https://files.pythonhosted.org/packages/f3/51/c2d280601cd816c43dfa512a759270d5a5ef638d7ac9bea9134c8305a12f/mypy-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:09a8da6a0ee9a9770b8ff61b39c0bb07971cda90e7297f4213741b48a0cc8d93", size = 9487053, upload-time = "2025-05-29T13:33:29.797Z" },465+ { url = "https://files.pythonhosted.org/packages/24/c4/ff2f79db7075c274fe85b5fff8797d29c6b61b8854c39e3b7feb556aa377/mypy-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:9f826aaa7ff8443bac6a494cf743f591488ea940dd360e7dd330e30dd772a5ab", size = 10884498, upload-time = "2025-05-29T13:18:54.066Z" },466+ { url = "https://files.pythonhosted.org/packages/02/07/12198e83006235f10f6a7808917376b5d6240a2fd5dce740fe5d2ebf3247/mypy-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:82d056e6faa508501af333a6af192c700b33e15865bda49611e3d7d8358ebea2", size = 10011755, upload-time = "2025-05-29T13:34:00.851Z" },467+ { url = "https://files.pythonhosted.org/packages/f1/9b/5fd5801a72b5d6fb6ec0105ea1d0e01ab2d4971893076e558d4b6d6b5f80/mypy-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:089bedc02307c2548eb51f426e085546db1fa7dd87fbb7c9fa561575cf6eb1ff", size = 11800138, upload-time = "2025-05-29T13:32:55.082Z" },468+ { url = "https://files.pythonhosted.org/packages/2e/81/a117441ea5dfc3746431e51d78a4aca569c677aa225bca2cc05a7c239b61/mypy-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6a2322896003ba66bbd1318c10d3afdfe24e78ef12ea10e2acd985e9d684a666", size = 12533156, upload-time = "2025-05-29T13:19:12.963Z" },469+ { url = "https://files.pythonhosted.org/packages/3f/38/88ec57c6c86014d3f06251e00f397b5a7daa6888884d0abf187e4f5f587f/mypy-1.16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:021a68568082c5b36e977d54e8f1de978baf401a33884ffcea09bd8e88a98f4c", size = 12742426, upload-time = "2025-05-29T13:20:22.72Z" },470+ { url = "https://files.pythonhosted.org/packages/bd/53/7e9d528433d56e6f6f77ccf24af6ce570986c2d98a5839e4c2009ef47283/mypy-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:54066fed302d83bf5128632d05b4ec68412e1f03ef2c300434057d66866cea4b", size = 9478319, upload-time = "2025-05-29T13:21:17.582Z" },471+ { url = "https://files.pythonhosted.org/packages/70/cf/158e5055e60ca2be23aec54a3010f89dcffd788732634b344fc9cb1e85a0/mypy-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c5436d11e89a3ad16ce8afe752f0f373ae9620841c50883dc96f8b8805620b13", size = 11062927, upload-time = "2025-05-29T13:35:52.328Z" },472+ { url = "https://files.pythonhosted.org/packages/94/34/cfff7a56be1609f5d10ef386342ce3494158e4d506516890142007e6472c/mypy-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f2622af30bf01d8fc36466231bdd203d120d7a599a6d88fb22bdcb9dbff84090", size = 10083082, upload-time = "2025-05-29T13:35:33.378Z" },473+ { url = "https://files.pythonhosted.org/packages/b3/7f/7242062ec6288c33d8ad89574df87c3903d394870e5e6ba1699317a65075/mypy-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d045d33c284e10a038f5e29faca055b90eee87da3fc63b8889085744ebabb5a1", size = 11828306, upload-time = "2025-05-29T13:21:02.164Z" },474+ { url = "https://files.pythonhosted.org/packages/6f/5f/b392f7b4f659f5b619ce5994c5c43caab3d80df2296ae54fa888b3d17f5a/mypy-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b4968f14f44c62e2ec4a038c8797a87315be8df7740dc3ee8d3bfe1c6bf5dba8", size = 12702764, upload-time = "2025-05-29T13:20:42.826Z" },475+ { url = "https://files.pythonhosted.org/packages/9b/c0/7646ef3a00fa39ac9bc0938626d9ff29d19d733011be929cfea59d82d136/mypy-1.16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:eb14a4a871bb8efb1e4a50360d4e3c8d6c601e7a31028a2c79f9bb659b63d730", size = 12896233, upload-time = "2025-05-29T13:18:37.446Z" },476+ { url = "https://files.pythonhosted.org/packages/6d/38/52f4b808b3fef7f0ef840ee8ff6ce5b5d77381e65425758d515cdd4f5bb5/mypy-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd4e1ebe126152a7bbaa4daedd781c90c8f9643c79b9748caa270ad542f12bec", size = 9565547, upload-time = "2025-05-29T13:20:02.836Z" },477+ { url = "https://files.pythonhosted.org/packages/97/9c/ca03bdbefbaa03b264b9318a98950a9c683e06472226b55472f96ebbc53d/mypy-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:a9e056237c89f1587a3be1a3a70a06a698d25e2479b9a2f57325ddaaffc3567b", size = 11059753, upload-time = "2025-05-29T13:18:18.167Z" },478+ { url = "https://files.pythonhosted.org/packages/36/92/79a969b8302cfe316027c88f7dc6fee70129490a370b3f6eb11d777749d0/mypy-1.16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0b07e107affb9ee6ce1f342c07f51552d126c32cd62955f59a7db94a51ad12c0", size = 10073338, upload-time = "2025-05-29T13:19:48.079Z" },479+ { url = "https://files.pythonhosted.org/packages/14/9b/a943f09319167da0552d5cd722104096a9c99270719b1afeea60d11610aa/mypy-1.16.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c6fb60cbd85dc65d4d63d37cb5c86f4e3a301ec605f606ae3a9173e5cf34997b", size = 11827764, upload-time = "2025-05-29T13:46:04.47Z" },480+ { url = "https://files.pythonhosted.org/packages/ec/64/ff75e71c65a0cb6ee737287c7913ea155845a556c64144c65b811afdb9c7/mypy-1.16.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7e32297a437cc915599e0578fa6bc68ae6a8dc059c9e009c628e1c47f91495d", size = 12701356, upload-time = "2025-05-29T13:35:13.553Z" },481+ { url = "https://files.pythonhosted.org/packages/0a/ad/0e93c18987a1182c350f7a5fab70550852f9fabe30ecb63bfbe51b602074/mypy-1.16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:afe420c9380ccec31e744e8baff0d406c846683681025db3531b32db56962d52", size = 12900745, upload-time = "2025-05-29T13:17:24.409Z" },482+ { url = "https://files.pythonhosted.org/packages/28/5d/036c278d7a013e97e33f08c047fe5583ab4f1fc47c9a49f985f1cdd2a2d7/mypy-1.16.0-cp313-cp313-win_amd64.whl", hash = "sha256:55f9076c6ce55dd3f8cd0c6fff26a008ca8e5131b89d5ba6d86bd3f47e736eeb", size = 9572200, upload-time = "2025-05-29T13:33:44.92Z" },483+ { url = "https://files.pythonhosted.org/packages/99/a3/6ed10530dec8e0fdc890d81361260c9ef1f5e5c217ad8c9b21ecb2b8366b/mypy-1.16.0-py3-none-any.whl", hash = "sha256:29e1499864a3888bca5c1542f2d7232c6e586295183320caa95758fc84034031", size = 2265773, upload-time = "2025-05-29T13:35:18.762Z" },484 ]485 486 [[package]]487 name = "mypy-extensions"55 unmodified lines543 { url = "https://files.pythonhosted.org/packages/ff/7d/a4aa06e452e031559dcfb066e035d2615ebfa6148e93514d7c36030004c1/pallets_sphinx_themes-2.3.0-py3-none-any.whl", hash = "sha256:7ed13de3743c462c2804e2aa63d96cc9ffa82cb76d0251cea03de9bcd9f8dbec", size = 24745, upload-time = "2024-10-24T18:52:37.265Z" },544 ]545 546 [[package]]547+name = "pathspec"548+version = "0.12.1"549+source = { registry = "https://pypi.org/simple" }550+sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043, upload-time = "2023-12-10T22:30:45Z" }551+wheels = [552+ { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191, upload-time = "2023-12-10T22:30:43.14Z" },553+]554+555+[[package]]556 name = "platformdirs"557 version = "4.3.8"558 source = { registry = "https://pypi.org/simple" }559 sdist = { url = "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz", hash = "sha256:3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc", size = 21362, upload-time = "2025-05-07T22:47:42.121Z" }62 unmodified lines622 ]623 624 [[package]]625 name = "pyright"616-version = "1.1.400"626+version = "1.1.401"627 source = { registry = "https://pypi.org/simple" }628 dependencies = [629 { name = "nodeenv" },630 { name = "typing-extensions" },631 ]622-sdist = { url = "https://files.pythonhosted.org/packages/6c/cb/c306618a02d0ee8aed5fb8d0fe0ecfed0dbf075f71468f03a30b5f4e1fe0/pyright-1.1.400.tar.gz", hash = "sha256:b8a3ba40481aa47ba08ffb3228e821d22f7d391f83609211335858bf05686bdb", size = 3846546, upload-time = "2025-04-24T12:55:18.907Z" }632+sdist = { url = "https://files.pythonhosted.org/packages/79/9a/7ab2b333b921b2d6bfcffe05a0e0a0bbeff884bd6fb5ed50cd68e2898e53/pyright-1.1.401.tar.gz", hash = "sha256:788a82b6611fa5e34a326a921d86d898768cddf59edde8e93e56087d277cc6f1", size = 3894193, upload-time = "2025-05-21T10:44:52.03Z" }633 wheels = [624- { url = "https://files.pythonhosted.org/packages/c8/a5/5d285e4932cf149c90e3c425610c5efaea005475d5f96f1bfdb452956c62/pyright-1.1.400-py3-none-any.whl", hash = "sha256:c80d04f98b5a4358ad3a35e241dbf2a408eee33a40779df365644f8054d2517e", size = 5563460, upload-time = "2025-04-24T12:55:17.002Z" },634+ { url = "https://files.pythonhosted.org/packages/0d/e6/1f908fce68b0401d41580e0f9acc4c3d1b248adcff00dfaad75cd21a1370/pyright-1.1.401-py3-none-any.whl", hash = "sha256:6fde30492ba5b0d7667c16ecaf6c699fab8d7a1263f6a18549e0b00bf7724c06", size = 5629193, upload-time = "2025-05-21T10:44:50.129Z" },635 ]636 637 [[package]]638 name = "pytest"629-version = "8.3.5"639+version = "8.4.0"640 source = { registry = "https://pypi.org/simple" }641 dependencies = [642 { name = "colorama", marker = "sys_platform == 'win32'" },643 { name = "exceptiongroup", marker = "python_full_version < '3.11'" },644 { name = "iniconfig" },645 { name = "packaging" },646 { name = "pluggy" },647+ { name = "pygments" },648 { name = "tomli", marker = "python_full_version < '3.11'" },649 ]639-sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891, upload-time = "2025-03-02T12:54:54.503Z" }650+sdist = { url = "https://files.pythonhosted.org/packages/fb/aa/405082ce2749be5398045152251ac69c0f3578c7077efc53431303af97ce/pytest-8.4.0.tar.gz", hash = "sha256:14d920b48472ea0dbf68e45b96cd1ffda4705f33307dcc86c676c1b5104838a6", size = 1515232, upload-time = "2025-06-02T17:36:30.03Z" }651 wheels = [641- { url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634, upload-time = "2025-03-02T12:54:52.069Z" },652+ { url = "https://files.pythonhosted.org/packages/2f/de/afa024cbe022b1b318a3d224125aa24939e99b4ff6f22e0ba639a2eaee47/pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e", size = 363797, upload-time = "2025-06-02T17:36:27.859Z" },653 ]654 655 [[package]]656 name = "pyyaml"64 unmodified lines721 ]722 723 [[package]]724 name = "ruff"714-version = "0.11.10"725+version = "0.11.13"726 source = { registry = "https://pypi.org/simple" }716-sdist = { url = "https://files.pythonhosted.org/packages/e8/4c/4a3c5a97faaae6b428b336dcca81d03ad04779f8072c267ad2bd860126bf/ruff-0.11.10.tar.gz", hash = "sha256:d522fb204b4959909ecac47da02830daec102eeb100fb50ea9554818d47a5fa6", size = 4165632, upload-time = "2025-05-15T14:08:56.76Z" }727+sdist = { url = "https://files.pythonhosted.org/packages/ed/da/9c6f995903b4d9474b39da91d2d626659af3ff1eeb43e9ae7c119349dba6/ruff-0.11.13.tar.gz", hash = "sha256:26fa247dc68d1d4e72c179e08889a25ac0c7ba4d78aecfc835d49cbfd60bf514", size = 4282054, upload-time = "2025-06-05T21:00:15.721Z" }728 wheels = [718- { url = "https://files.pythonhosted.org/packages/2f/9f/596c628f8824a2ce4cd12b0f0b4c0629a62dfffc5d0f742c19a1d71be108/ruff-0.11.10-py3-none-linux_armv6l.whl", hash = "sha256:859a7bfa7bc8888abbea31ef8a2b411714e6a80f0d173c2a82f9041ed6b50f58", size = 10316243, upload-time = "2025-05-15T14:08:12.884Z" },719- { url = "https://files.pythonhosted.org/packages/3c/38/c1e0b77ab58b426f8c332c1d1d3432d9fc9a9ea622806e208220cb133c9e/ruff-0.11.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:968220a57e09ea5e4fd48ed1c646419961a0570727c7e069842edd018ee8afed", size = 11083636, upload-time = "2025-05-15T14:08:16.551Z" },720- { url = "https://files.pythonhosted.org/packages/23/41/b75e15961d6047d7fe1b13886e56e8413be8467a4e1be0a07f3b303cd65a/ruff-0.11.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1067245bad978e7aa7b22f67113ecc6eb241dca0d9b696144256c3a879663bca", size = 10441624, upload-time = "2025-05-15T14:08:19.032Z" },721- { url = "https://files.pythonhosted.org/packages/b6/2c/e396b6703f131406db1811ea3d746f29d91b41bbd43ad572fea30da1435d/ruff-0.11.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f4854fd09c7aed5b1590e996a81aeff0c9ff51378b084eb5a0b9cd9518e6cff2", size = 10624358, upload-time = "2025-05-15T14:08:21.542Z" },722- { url = "https://files.pythonhosted.org/packages/bd/8c/ee6cca8bdaf0f9a3704796022851a33cd37d1340bceaf4f6e991eb164e2e/ruff-0.11.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8b4564e9f99168c0f9195a0fd5fa5928004b33b377137f978055e40008a082c5", size = 10176850, upload-time = "2025-05-15T14:08:23.682Z" },723- { url = "https://files.pythonhosted.org/packages/e9/ce/4e27e131a434321b3b7c66512c3ee7505b446eb1c8a80777c023f7e876e6/ruff-0.11.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5b6a9cc5b62c03cc1fea0044ed8576379dbaf751d5503d718c973d5418483641", size = 11759787, upload-time = "2025-05-15T14:08:25.733Z" },724- { url = "https://files.pythonhosted.org/packages/58/de/1e2e77fc72adc7cf5b5123fd04a59ed329651d3eab9825674a9e640b100b/ruff-0.11.10-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:607ecbb6f03e44c9e0a93aedacb17b4eb4f3563d00e8b474298a201622677947", size = 12430479, upload-time = "2025-05-15T14:08:28.013Z" },725- { url = "https://files.pythonhosted.org/packages/07/ed/af0f2340f33b70d50121628ef175523cc4c37619e98d98748c85764c8d88/ruff-0.11.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7b3a522fa389402cd2137df9ddefe848f727250535c70dafa840badffb56b7a4", size = 11919760, upload-time = "2025-05-15T14:08:30.956Z" },726- { url = "https://files.pythonhosted.org/packages/24/09/d7b3d3226d535cb89234390f418d10e00a157b6c4a06dfbe723e9322cb7d/ruff-0.11.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f071b0deed7e9245d5820dac235cbdd4ef99d7b12ff04c330a241ad3534319f", size = 14041747, upload-time = "2025-05-15T14:08:33.297Z" },727- { url = "https://files.pythonhosted.org/packages/62/b3/a63b4e91850e3f47f78795e6630ee9266cb6963de8f0191600289c2bb8f4/ruff-0.11.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a60e3a0a617eafba1f2e4186d827759d65348fa53708ca547e384db28406a0b", size = 11550657, upload-time = "2025-05-15T14:08:35.639Z" },728- { url = "https://files.pythonhosted.org/packages/46/63/a4f95c241d79402ccdbdb1d823d156c89fbb36ebfc4289dce092e6c0aa8f/ruff-0.11.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:da8ec977eaa4b7bf75470fb575bea2cb41a0e07c7ea9d5a0a97d13dbca697bf2", size = 10489671, upload-time = "2025-05-15T14:08:38.437Z" },729- { url = "https://files.pythonhosted.org/packages/6a/9b/c2238bfebf1e473495659c523d50b1685258b6345d5ab0b418ca3f010cd7/ruff-0.11.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ddf8967e08227d1bd95cc0851ef80d2ad9c7c0c5aab1eba31db49cf0a7b99523", size = 10160135, upload-time = "2025-05-15T14:08:41.247Z" },730- { url = "https://files.pythonhosted.org/packages/ba/ef/ba7251dd15206688dbfba7d413c0312e94df3b31b08f5d695580b755a899/ruff-0.11.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:5a94acf798a82db188f6f36575d80609072b032105d114b0f98661e1679c9125", size = 11170179, upload-time = "2025-05-15T14:08:43.762Z" },731- { url = "https://files.pythonhosted.org/packages/73/9f/5c336717293203ba275dbfa2ea16e49b29a9fd9a0ea8b6febfc17e133577/ruff-0.11.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:3afead355f1d16d95630df28d4ba17fb2cb9c8dfac8d21ced14984121f639bad", size = 11626021, upload-time = "2025-05-15T14:08:46.451Z" },732- { url = "https://files.pythonhosted.org/packages/d9/2b/162fa86d2639076667c9aa59196c020dc6d7023ac8f342416c2f5ec4bda0/ruff-0.11.10-py3-none-win32.whl", hash = "sha256:dc061a98d32a97211af7e7f3fa1d4ca2fcf919fb96c28f39551f35fc55bdbc19", size = 10494958, upload-time = "2025-05-15T14:08:49.601Z" },733- { url = "https://files.pythonhosted.org/packages/24/f3/66643d8f32f50a4b0d09a4832b7d919145ee2b944d43e604fbd7c144d175/ruff-0.11.10-py3-none-win_amd64.whl", hash = "sha256:5cc725fbb4d25b0f185cb42df07ab6b76c4489b4bfb740a175f3a59c70e8a224", size = 11650285, upload-time = "2025-05-15T14:08:52.392Z" },734- { url = "https://files.pythonhosted.org/packages/95/3a/2e8704d19f376c799748ff9cb041225c1d59f3e7711bc5596c8cfdc24925/ruff-0.11.10-py3-none-win_arm64.whl", hash = "sha256:ef69637b35fb8b210743926778d0e45e1bffa850a7c61e428c6b971549b5f5d1", size = 10765278, upload-time = "2025-05-15T14:08:54.56Z" },729+ { url = "https://files.pythonhosted.org/packages/7d/ce/a11d381192966e0b4290842cc8d4fac7dc9214ddf627c11c1afff87da29b/ruff-0.11.13-py3-none-linux_armv6l.whl", hash = "sha256:4bdfbf1240533f40042ec00c9e09a3aade6f8c10b6414cf11b519488d2635d46", size = 10292516, upload-time = "2025-06-05T20:59:32.944Z" },730+ { url = "https://files.pythonhosted.org/packages/78/db/87c3b59b0d4e753e40b6a3b4a2642dfd1dcaefbff121ddc64d6c8b47ba00/ruff-0.11.13-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:aef9c9ed1b5ca28bb15c7eac83b8670cf3b20b478195bd49c8d756ba0a36cf48", size = 11106083, upload-time = "2025-06-05T20:59:37.03Z" },731+ { url = "https://files.pythonhosted.org/packages/77/79/d8cec175856ff810a19825d09ce700265f905c643c69f45d2b737e4a470a/ruff-0.11.13-py3-none-macosx_11_0_arm64.whl", hash = "sha256:53b15a9dfdce029c842e9a5aebc3855e9ab7771395979ff85b7c1dedb53ddc2b", size = 10436024, upload-time = "2025-06-05T20:59:39.741Z" },732+ { url = "https://files.pythonhosted.org/packages/8b/5b/f6d94f2980fa1ee854b41568368a2e1252681b9238ab2895e133d303538f/ruff-0.11.13-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ab153241400789138d13f362c43f7edecc0edfffce2afa6a68434000ecd8f69a", size = 10646324, upload-time = "2025-06-05T20:59:42.185Z" },733+ { url = "https://files.pythonhosted.org/packages/6c/9c/b4c2acf24ea4426016d511dfdc787f4ce1ceb835f3c5fbdbcb32b1c63bda/ruff-0.11.13-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6c51f93029d54a910d3d24f7dd0bb909e31b6cd989a5e4ac513f4eb41629f0dc", size = 10174416, upload-time = "2025-06-05T20:59:44.319Z" },734+ { url = "https://files.pythonhosted.org/packages/f3/10/e2e62f77c65ede8cd032c2ca39c41f48feabedb6e282bfd6073d81bb671d/ruff-0.11.13-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1808b3ed53e1a777c2ef733aca9051dc9bf7c99b26ece15cb59a0320fbdbd629", size = 11724197, upload-time = "2025-06-05T20:59:46.935Z" },735+ { url = "https://files.pythonhosted.org/packages/bb/f0/466fe8469b85c561e081d798c45f8a1d21e0b4a5ef795a1d7f1a9a9ec182/ruff-0.11.13-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:d28ce58b5ecf0f43c1b71edffabe6ed7f245d5336b17805803312ec9bc665933", size = 12511615, upload-time = "2025-06-05T20:59:49.534Z" },736+ { url = "https://files.pythonhosted.org/packages/17/0e/cefe778b46dbd0cbcb03a839946c8f80a06f7968eb298aa4d1a4293f3448/ruff-0.11.13-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:55e4bc3a77842da33c16d55b32c6cac1ec5fb0fbec9c8c513bdce76c4f922165", size = 12117080, upload-time = "2025-06-05T20:59:51.654Z" },737+ { url = "https://files.pythonhosted.org/packages/5d/2c/caaeda564cbe103bed145ea557cb86795b18651b0f6b3ff6a10e84e5a33f/ruff-0.11.13-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:633bf2c6f35678c56ec73189ba6fa19ff1c5e4807a78bf60ef487b9dd272cc71", size = 11326315, upload-time = "2025-06-05T20:59:54.469Z" },738+ { url = "https://files.pythonhosted.org/packages/75/f0/782e7d681d660eda8c536962920c41309e6dd4ebcea9a2714ed5127d44bd/ruff-0.11.13-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ffbc82d70424b275b089166310448051afdc6e914fdab90e08df66c43bb5ca9", size = 11555640, upload-time = "2025-06-05T20:59:56.986Z" },739+ { url = "https://files.pythonhosted.org/packages/5d/d4/3d580c616316c7f07fb3c99dbecfe01fbaea7b6fd9a82b801e72e5de742a/ruff-0.11.13-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4a9ddd3ec62a9a89578c85842b836e4ac832d4a2e0bfaad3b02243f930ceafcc", size = 10507364, upload-time = "2025-06-05T20:59:59.154Z" },740+ { url = "https://files.pythonhosted.org/packages/5a/dc/195e6f17d7b3ea6b12dc4f3e9de575db7983db187c378d44606e5d503319/ruff-0.11.13-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d237a496e0778d719efb05058c64d28b757c77824e04ffe8796c7436e26712b7", size = 10141462, upload-time = "2025-06-05T21:00:01.481Z" },741+ { url = "https://files.pythonhosted.org/packages/f4/8e/39a094af6967faa57ecdeacb91bedfb232474ff8c3d20f16a5514e6b3534/ruff-0.11.13-py3-none-musllinux_1_2_i686.whl", hash = "sha256:26816a218ca6ef02142343fd24c70f7cd8c5aa6c203bca284407adf675984432", size = 11121028, upload-time = "2025-06-05T21:00:04.06Z" },742+ { url = "https://files.pythonhosted.org/packages/5a/c0/b0b508193b0e8a1654ec683ebab18d309861f8bd64e3a2f9648b80d392cb/ruff-0.11.13-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:51c3f95abd9331dc5b87c47ac7f376db5616041173826dfd556cfe3d4977f492", size = 11602992, upload-time = "2025-06-05T21:00:06.249Z" },743+ { url = "https://files.pythonhosted.org/packages/7c/91/263e33ab93ab09ca06ce4f8f8547a858cc198072f873ebc9be7466790bae/ruff-0.11.13-py3-none-win32.whl", hash = "sha256:96c27935418e4e8e77a26bb05962817f28b8ef3843a6c6cc49d8783b5507f250", size = 10474944, upload-time = "2025-06-05T21:00:08.459Z" },744+ { url = "https://files.pythonhosted.org/packages/46/f4/7c27734ac2073aae8efb0119cae6931b6fb48017adf048fdf85c19337afc/ruff-0.11.13-py3-none-win_amd64.whl", hash = "sha256:29c3189895a8a6a657b7af4e97d330c8a3afd2c9c8f46c81e2fc5a31866517e3", size = 11548669, upload-time = "2025-06-05T21:00:11.147Z" },745+ { url = "https://files.pythonhosted.org/packages/ec/bf/b273dd11673fed8a6bd46032c0ea2a04b2ac9bfa9c628756a5856ba113b0/ruff-0.11.13-py3-none-win_arm64.whl", hash = "sha256:b4385285e9179d608ff1d2fb9922062663c658605819a6876d8beef0c30b7f3b", size = 10683928, upload-time = "2025-06-05T21:00:13.758Z" },746 ]747 748 [[package]]749 name = "sniffio"190 unmodified lines940 ]941 942 [[package]]943 name = "starlette"933-version = "0.46.2"944+version = "0.47.0"945 source = { registry = "https://pypi.org/simple" }946 dependencies = [947 { name = "anyio" },948 ]938-sdist = { url = "https://files.pythonhosted.org/packages/ce/20/08dfcd9c983f6a6f4a1000d934b9e6d626cff8d2eeb77a89a68eef20a2b7/starlette-0.46.2.tar.gz", hash = "sha256:7f7361f34eed179294600af672f565727419830b54b7b084efe44bb82d2fccd5", size = 2580846, upload-time = "2025-04-13T13:56:17.942Z" }949+sdist = { url = "https://files.pythonhosted.org/packages/8b/d0/0332bd8a25779a0e2082b0e179805ad39afad642938b371ae0882e7f880d/starlette-0.47.0.tar.gz", hash = "sha256:1f64887e94a447fed5f23309fb6890ef23349b7e478faa7b24a851cd4eb844af", size = 2582856, upload-time = "2025-05-29T15:45:27.628Z" }950 wheels = [940- { url = "https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl", hash = "sha256:595633ce89f8ffa71a015caed34a5b2dc1c0cdb3f0f1fbd1e69339cf2abeec35", size = 72037, upload-time = "2025-04-13T13:56:16.21Z" },951+ { url = "https://files.pythonhosted.org/packages/e3/81/c60b35fe9674f63b38a8feafc414fca0da378a9dbd5fa1e0b8d23fcc7a9b/starlette-0.47.0-py3-none-any.whl", hash = "sha256:9d052d4933683af40ffd47c7465433570b4949dc937e20ad1d73b34e72f10c37", size = 72796, upload-time = "2025-05-29T15:45:26.305Z" },952 ]953 954 [[package]]955 name = "tomli"57 unmodified lines1013 ]1014 1015 [[package]]1016 name = "tox-uv"1006-version = "1.25.0"1017+version = "1.26.0"1018 source = { registry = "https://pypi.org/simple" }1019 dependencies = [1020 { name = "packaging" },1021 { name = "tox" },1022 { name = "uv" },1023 ]1013-sdist = { url = "https://files.pythonhosted.org/packages/5d/3a/3e445f25978a716ba6674f33f687d9336d0312086a277a778a5e9e9220d7/tox_uv-1.25.0.tar.gz", hash = "sha256:59ee5e694c41fef7bbcf058f22a5f9b6a8509698def2ea60c08554f4e36b9fcc", size = 21114, upload-time = "2025-02-21T16:37:51.796Z" }1024+sdist = { url = "https://files.pythonhosted.org/packages/7e/da/37790b4a176f05b0ec7a699f54979078fc726f743640aa5c10c551c27edb/tox_uv-1.26.0.tar.gz", hash = "sha256:5045880c467eed58a98f7eaa7fe286b7ef688e2c56f2123d53e275011495c381", size = 21523, upload-time = "2025-05-27T14:51:42.702Z" }1025 wheels = [1015- { url = "https://files.pythonhosted.org/packages/3c/a7/f5c29e0e6faaccefcab607f672b176927144e9412c8183d21301ea2a6f6c/tox_uv-1.25.0-py3-none-any.whl", hash = "sha256:50cfe7795dcd49b2160d7d65b5ece8717f38cfedc242c852a40ec0a71e159bf7", size = 16431, upload-time = "2025-02-21T16:37:49.657Z" },1026+ { url = "https://files.pythonhosted.org/packages/46/b8/04c5cb83da072a3f96d357d68a551f5e97e162573c2011a09437df995811/tox_uv-1.26.0-py3-none-any.whl", hash = "sha256:894b2e7274fd6131c3bd1012813edc858753cad67727050c21cd973a08e691c8", size = 16562, upload-time = "2025-05-27T14:51:40.803Z" },1027 ]1028 1029 [[package]]1030 name = "typing-extensions"1020-version = "4.13.2"1031+version = "4.14.0"1032 source = { registry = "https://pypi.org/simple" }1022-sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967, upload-time = "2025-04-10T14:19:05.416Z" }1033+sdist = { url = "https://files.pythonhosted.org/packages/d1/bc/51647cd02527e87d05cb083ccc402f93e441606ff1f01739a62c8ad09ba5/typing_extensions-4.14.0.tar.gz", hash = "sha256:8676b788e32f02ab42d9e7c61324048ae4c6d844a399eebace3d4979d75ceef4", size = 107423, upload-time = "2025-06-02T14:52:11.399Z" }1034 wheels = [1024- { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806, upload-time = "2025-04-10T14:19:03.967Z" },1035+ { url = "https://files.pythonhosted.org/packages/69/e0/552843e0d356fbb5256d21449fa957fa4eff3bbc135a74a691ee70c7c5da/typing_extensions-4.14.0-py3-none-any.whl", hash = "sha256:a1514509136dd0b477638fc68d6a91497af5076466ad0fa6c338e44e359944af", size = 43839, upload-time = "2025-06-02T14:52:10.026Z" },1036 ]1037 1038 [[package]]1039 name = "urllib3"5 unmodified lines1045 ]1046 1047 [[package]]1048 name = "uv"1038-version = "0.7.3"1049+version = "0.7.12"1050 source = { registry = "https://pypi.org/simple" }1040-sdist = { url = "https://files.pythonhosted.org/packages/77/9e/4ea6d224f868badecd48b8fed17f83adb0ff62f75bc21785d91dee75c744/uv-0.7.3.tar.gz", hash = "sha256:863ceb63aefc7c2db9918313a1cb3c8bf3fc3d59b656b617db9e4abad90373f3", size = 3242256, upload-time = "2025-05-07T20:01:59.783Z" }1051+sdist = { url = "https://files.pythonhosted.org/packages/67/35/360a4aa325254b7f11d0898d30588861428659011b34f1e19c40fdd15db6/uv-0.7.12.tar.gz", hash = "sha256:4aa152e6a70d5662ca66a918f697bf8fb710f391068aa7d04e032af2edebb095", size = 3298683, upload-time = "2025-06-06T20:39:04.308Z" }1052 wheels = [1042- { url = "https://files.pythonhosted.org/packages/e4/8b/09a9d9da09d90ec6829dc4b3e9b7ff99222b7f05bc5d292bc30b04b92209/uv-0.7.3-py3-none-linux_armv6l.whl", hash = "sha256:f37c8a6b172776fb5305afe0699907aff44a778669de7a8fbe5a9c09c1a88a97", size = 16673361, upload-time = "2025-05-07T20:01:04.641Z" },1043- { url = "https://files.pythonhosted.org/packages/ba/de/794ea8c9729784c7626f05a98fe91b8367587f57f023cb95adcd8f8a9215/uv-0.7.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3e6e1fd5755d4ef4c6e1ce55bd2c6d9dec278a8bef5752703d702ce03704fe29", size = 16755964, upload-time = "2025-05-07T20:01:09.43Z" },1044- { url = "https://files.pythonhosted.org/packages/df/1b/50922bfbe1631d022e0c6434ade17158b9b4e0bb7fccc77c928e32dd9021/uv-0.7.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:db8a5d5995b160158405379deadf0ffccf849a5e7ce048900b73517daf109e2c", size = 15577471, upload-time = "2025-05-07T20:01:12.235Z" },1045- { url = "https://files.pythonhosted.org/packages/69/39/cba47262d9547695657885391b34e8732cb0c34b5b876b811851cd320f3a/uv-0.7.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:d246243f348796730e8ea9736ddd48702d4448d98af5e61693063ed616e30378", size = 16027456, upload-time = "2025-05-07T20:01:14.653Z" },1046- { url = "https://files.pythonhosted.org/packages/e6/33/1acf89318fb987a6eb9989a6991b76b6c930b6a724ce5f1ed848519d6a5f/uv-0.7.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:acef117a0c52299e60c6f7a3e60849050cd233704c561f688fac1100d113da2e", size = 16390903, upload-time = "2025-05-07T20:01:17.018Z" },1047- { url = "https://files.pythonhosted.org/packages/ad/66/2fe8ec6e5390de4cfc6db312464b4f28e5b3d98d576adc42731c0aeb5073/uv-0.7.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:90990e4c289feee24164c8e463fc0ebc9a336960119cd256acca7c1439f0f536", size = 17167937, upload-time = "2025-05-07T20:01:19.567Z" },1048- { url = "https://files.pythonhosted.org/packages/a5/8a/dc46e79f5fd068cb841a716a96f0344af62cf2deb2e78f57e0e147de26ac/uv-0.7.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:4809e5f7f5b2d6423d6573fda5655389c955ca649499fe9750b61af95daf9b7d", size = 18077868, upload-time = "2025-05-07T20:01:22.447Z" },1049- { url = "https://files.pythonhosted.org/packages/da/af/f7165a205ce8bb5e00f197d86a6fce4b4a317db0e471a31db9137ca1cc2d/uv-0.7.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:acff7fba5ff40dcb5a42de496db92a3965edac7a3d687d9b013ba6e0336995df", size = 17793072, upload-time = "2025-05-07T20:01:25.942Z" },1050- { url = "https://files.pythonhosted.org/packages/27/5e/2e9172ec3fa8acfa69642900d6eee8e5021f6c14d135edef524c674b4cfb/uv-0.7.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fbb2d322d453e498e1431c51421cee597962ecd3f93fcef853b258e9c7e7636c", size = 22181943, upload-time = "2025-05-07T20:01:28.576Z" },1051- { url = "https://files.pythonhosted.org/packages/f1/b1/8af4ea6d09d05b9edead5e701dd91e04d55971483a7a644bab7a979bb46b/uv-0.7.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1414a026c153ae0731daed0812b17bf77d34eafedaeb3a5c72e08181aea116b", size = 17400777, upload-time = "2025-05-07T20:01:32.27Z" },1052- { url = "https://files.pythonhosted.org/packages/09/ae/ccd123274ae59707e84fc5542776f89887818bad915167fbaeda65ebf52a/uv-0.7.3-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:c976fce3d1068a1d007f50127cc7873d67643c1a60439564970f092d9be41877", size = 16306132, upload-time = "2025-05-07T20:01:36.572Z" },1053- { url = "https://files.pythonhosted.org/packages/01/5c/99ef96ca53c74552b616bd341cd5d298bc8a603151343c409efeaf1552a0/uv-0.7.3-py3-none-musllinux_1_1_armv7l.whl", hash = "sha256:cc27207c35c959d2e0e873e86a80a2470a77b7a34a4512a831e8d4f7c87f4404", size = 16376728, upload-time = "2025-05-07T20:01:39.357Z" },1054- { url = "https://files.pythonhosted.org/packages/74/91/07f7e68f08e617d27ae9908a4e8deb756368b942319634956ed92d7cf35c/uv-0.7.3-py3-none-musllinux_1_1_i686.whl", hash = "sha256:5eb4872888a9fb10b62cc00be8e84822d63d3e622a5f340248e53ecf321dba96", size = 16707670, upload-time = "2025-05-07T20:01:46.816Z" },1055- { url = "https://files.pythonhosted.org/packages/a9/73/385a5a55fccfebac84a88b629992e301c080640691f2e27a3e3ccee8315e/uv-0.7.3-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:0646e463365e7277f22200ce2d43b7a44e5a3192320500b4983b4fe34d69a5fb", size = 17514613, upload-time = "2025-05-07T20:01:49.245Z" },1056- { url = "https://files.pythonhosted.org/packages/6a/97/1138bb26038805a14d930c7261faf363a5256757390b4be0aaf6e33a41c0/uv-0.7.3-py3-none-win32.whl", hash = "sha256:44e2f3fcbd1ab519bdb68986449b2e3103d2261be95f985cadcf7ec7c510b595", size = 16897117, upload-time = "2025-05-07T20:01:51.728Z" },1057- { url = "https://files.pythonhosted.org/packages/64/1b/c9f0ad7c75bf0a04c52c7e766593f5e79b1ac7d97fa1cb34c6ce0cfe3746/uv-0.7.3-py3-none-win_amd64.whl", hash = "sha256:0a446d4e5b10ce8a793156a276727bb7affa96a85e80dc5ad34e0c2de7e71cc8", size = 18323992, upload-time = "2025-05-07T20:01:54.495Z" },1058- { url = "https://files.pythonhosted.org/packages/47/1b/7ca1b8ec4bcf1c807f61e6ced7ca704791843cf1297db5edb54db07bd1db/uv-0.7.3-py3-none-win_arm64.whl", hash = "sha256:cb2547fd1466698e9b4f11de5eef7055b8cbcc3c693d79f6d747e3f8e6be2ab7", size = 17017988, upload-time = "2025-05-07T20:01:57.283Z" },1053+ { url = "https://files.pythonhosted.org/packages/f8/64/ee9f1b27f006c49a6765e9655ab93e7c8cbd6f0bf8b731f30f608b0be9fd/uv-0.7.12-py3-none-linux_armv6l.whl", hash = "sha256:81824caf5756ffee54b4c937d92d7c8c224c416270c90a83b9b4a973f6e4e559", size = 17024991, upload-time = "2025-06-06T20:38:17.053Z" },1054+ { url = "https://files.pythonhosted.org/packages/43/aa/f42707faa13a9c1b4f662456b2dca4bde169eb921f135319d8856c6e5e8e/uv-0.7.12-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:02e67c5f9d141fb25976cddb28abceaf715412ed83070cb9b87c5c488c8451af", size = 17097383, upload-time = "2025-06-06T20:38:21.174Z" },1055+ { url = "https://files.pythonhosted.org/packages/b9/a9/0f27e16e161f98240a328b5201b8abf178b751fde4fc56c54c1321812cd5/uv-0.7.12-py3-none-macosx_11_0_arm64.whl", hash = "sha256:e70a4393fd6a09b056e1ac500fe2b796d26c30783194868c6801ea08c3bbf863", size = 15812649, upload-time = "2025-06-06T20:38:23.51Z" },1056+ { url = "https://files.pythonhosted.org/packages/0b/eb/605d8f1d08606024209d0e31c3799c696199a887260ee1db52663e4da2e8/uv-0.7.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:bb47326b9c4802db28e11f1aab174d5c9c0a8b26ed0a83094d3882dd8f5049ad", size = 16344497, upload-time = "2025-06-06T20:38:25.899Z" },1057+ { url = "https://files.pythonhosted.org/packages/b7/86/3503eb869fa17d607cc296a6514db52ec73c2ec85ad608952a207fd2e8ff/uv-0.7.12-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:14214a51e0ae0f0e8dbcac35a29722c45dbf40d0fd37309897642f7989af6caf", size = 16773525, upload-time = "2025-06-06T20:38:28.619Z" },1058+ { url = "https://files.pythonhosted.org/packages/9b/d6/868fb3f0b9f2a0d2f14cb8079171b862adbd782e47e0469dad3d3d71c938/uv-0.7.12-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0fa630d865111c26f26c5e6f4547a73b13284f098471a4ca982d7b0caf0e658b", size = 17551173, upload-time = "2025-06-06T20:38:31.166Z" },1059+ { url = "https://files.pythonhosted.org/packages/d4/a8/b5be1c67c7894caf178e850903ac25f465e3508a6eada2ae735b187dc39d/uv-0.7.12-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:1557a154d2c36030ff0b707f3c2bfafd977e54fcd4d628dd0fa8a265449e9f13", size = 18359491, upload-time = "2025-06-06T20:38:33.569Z" },1060+ { url = "https://files.pythonhosted.org/packages/95/23/f62bab13f67ed785f7ad01546c499809d1db71b03f94950380f0bc407625/uv-0.7.12-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7e0ba7767b21d58d65703c3cd43814ccfe06d7664ac42b3589d5f2b72486b903", size = 18098855, upload-time = "2025-06-06T20:38:36.029Z" },1061+ { url = "https://files.pythonhosted.org/packages/a6/4a/db21a5d3839771799af2df366cc5ed0933ebe9fc9e920f212e33dc00136e/uv-0.7.12-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e0672dc5dc1b0ae7191d11ecae8bb794c7e860936b66c2bc3855bd0dee17fca1", size = 18206282, upload-time = "2025-06-06T20:38:38.582Z" },1062+ { url = "https://files.pythonhosted.org/packages/bc/ae/fcfd916cbc109c5626dc25b208395b47ba12b27af82f3bb8e247b4e95692/uv-0.7.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e34b4ad4288828210c2e075934009903514ca97bd603aced7d0755040b4d0489", size = 17777690, upload-time = "2025-06-06T20:38:41.021Z" },1063+ { url = "https://files.pythonhosted.org/packages/92/78/608163b35ffaf1054cd10197646b6336e7be7b6a51dfef6d98a91600c6be/uv-0.7.12-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:8a7ed9e94ec409bfc7181ee274d1b0ed6292698a20df0ae035ce422224863af5", size = 16599406, upload-time = "2025-06-06T20:38:43.72Z" },1064+ { url = "https://files.pythonhosted.org/packages/d4/d6/6fe3b16390472a9d31dd1e0e7e3759b884d71e8a0dff1baf4a753b4adaaa/uv-0.7.12-py3-none-musllinux_1_1_armv7l.whl", hash = "sha256:85e8d3dea95016a45ed8c48343f98734d1b5c4be7bba26257d4c8873059646fa", size = 16714823, upload-time = "2025-06-06T20:38:45.949Z" },1065+ { url = "https://files.pythonhosted.org/packages/b3/a5/b0432a25eaa23e9f909649321784b8e4be4579e9957eb5d369aa30c79164/uv-0.7.12-py3-none-musllinux_1_1_i686.whl", hash = "sha256:01310c45d55f6e7580124c9b1f7e3586b9609c4f8e5a78558a75951b03541bb2", size = 17086446, upload-time = "2025-06-06T20:38:48.648Z" },1066+ { url = "https://files.pythonhosted.org/packages/da/d8/673591f34f897aa4216144a513e60c2004399155c47e7b550612960359c6/uv-0.7.12-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:4c697ef9d9f6b6f42df5a661efa8a745c0e4c330039d45b549b2ca7e7b66f8a5", size = 17903789, upload-time = "2025-06-06T20:38:51.864Z" },1067+ { url = "https://files.pythonhosted.org/packages/15/09/e476187c0a1da78b9c2021f3c3ab31ed2469a70d222bde5dc892236b3c4f/uv-0.7.12-py3-none-win32.whl", hash = "sha256:6008abf92c8d37060944377d89bf9f514aa18370391d9d63dc7d449dac94aca1", size = 17344011, upload-time = "2025-06-06T20:38:54.276Z" },1068+ { url = "https://files.pythonhosted.org/packages/08/9e/c52c7f50280e57110ca79b6805877f50514d9a777d31a683a4eb1de52312/uv-0.7.12-py3-none-win_amd64.whl", hash = "sha256:bb57bd26becd86194788f832af373b6ba431314fa0f6f7e904c90cac1818a7dc", size = 18803328, upload-time = "2025-06-06T20:38:59.368Z" },1069+ { url = "https://files.pythonhosted.org/packages/8e/35/4800ff7bc1663d9f967eabc8440074f906c8a98ea28d1aae66d2d19b7ae9/uv-0.7.12-py3-none-win_arm64.whl", hash = "sha256:8aba24e12ded2f2974a2f213e55daabf78002613d3772c1396fc924c6682cd27", size = 17450522, upload-time = "2025-06-06T20:39:01.963Z" },1070 ]1071 1072 [[package]]1073 name = "uvicorn"1063-version = "0.34.2"1074+version = "0.34.3"1075 source = { registry = "https://pypi.org/simple" }1076 dependencies = [1077 { name = "click" },1078 { name = "h11" },1079 { name = "typing-extensions", marker = "python_full_version < '3.11'" },1080 ]1070-sdist = { url = "https://files.pythonhosted.org/packages/a6/ae/9bbb19b9e1c450cf9ecaef06463e40234d98d95bf572fab11b4f19ae5ded/uvicorn-0.34.2.tar.gz", hash = "sha256:0e929828f6186353a80b58ea719861d2629d766293b6d19baf086ba31d4f3328", size = 76815, upload-time = "2025-04-19T06:02:50.101Z" }1081+sdist = { url = "https://files.pythonhosted.org/packages/de/ad/713be230bcda622eaa35c28f0d328c3675c371238470abdea52417f17a8e/uvicorn-0.34.3.tar.gz", hash = "sha256:35919a9a979d7a59334b6b10e05d77c1d0d574c50e0fc98b8b1a0f165708b55a", size = 76631, upload-time = "2025-06-01T07:48:17.531Z" }1082 wheels = [1072- { url = "https://files.pythonhosted.org/packages/b1/4b/4cef6ce21a2aaca9d852a6e84ef4f135d99fcd74fa75105e2fc0c8308acd/uvicorn-0.34.2-py3-none-any.whl", hash = "sha256:deb49af569084536d269fe0a6d67e3754f104cf03aba7c11c40f01aadf33c403", size = 62483, upload-time = "2025-04-19T06:02:48.42Z" },1083+ { url = "https://files.pythonhosted.org/packages/6d/0d/8adfeaa62945f90d19ddc461c55f4a50c258af7662d34b6a3d5d1f8646f6/uvicorn-0.34.3-py3-none-any.whl", hash = "sha256:16246631db62bdfbf069b0645177d6e8a77ba950cfedbfd093acef9444e4d885", size = 62431, upload-time = "2025-06-01T07:48:15.664Z" },1084 ]1085 1086 [[package]]1087 name = "virtualenv"135 unmodified lines