Skip to content

Commit a967dd6

Browse files
Merge pull request #545 from adamtheturtle/bump-click
Bump click
2 parents 340a6aa + 8f8a1a7 commit a967dd6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ repos:
329329
- id: pyright-verifytypes
330330
name: pyright-verifytypes
331331
stages: [pre-push]
332-
entry: uv run --extra=dev -m pyright --verifytypes doccmd
332+
# See https://github.com/pallets/click/issues/3067 for why we need to ignore external.
333+
entry: uv run --extra=dev -m pyright --ignoreexternal --verifytypes doccmd
333334
language: python
334335
pass_filenames: false
335336
types_or: [python]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dynamic = [
3737
dependencies = [
3838
"beartype>=0.19.0",
3939
"charset-normalizer>=3.4.1",
40-
"click>=8.2.0",
40+
"click>=8.3.0,<8.4.0",
4141
"pygments>=2.18.0",
4242
"sybil>=9.1.0,<10.0.0",
4343
# Pin this dependency as we expect:

src/doccmd/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def _get_sybil(
776776
is_flag=True,
777777
type=_UsePty,
778778
flag_value=_UsePty.YES,
779-
default=False,
779+
default=_UsePty.DETECT,
780780
show_default="--detect-use-pty",
781781
help=(
782782
"Use a pseudo-terminal for running commands. "
@@ -791,7 +791,7 @@ def _get_sybil(
791791
is_flag=True,
792792
type=_UsePty,
793793
flag_value=_UsePty.NO,
794-
default=False,
794+
default=_UsePty.DETECT,
795795
show_default="--detect-use-pty",
796796
help=(
797797
"Do not use a pseudo-terminal for running commands. "
@@ -805,7 +805,7 @@ def _get_sybil(
805805
is_flag=True,
806806
type=_UsePty,
807807
flag_value=_UsePty.DETECT,
808-
default=True,
808+
default=_UsePty.DETECT,
809809
show_default="True",
810810
help=(
811811
"Automatically determine whether to use a pseudo-terminal for running "

0 commit comments

Comments
 (0)