Skip to content

Commit ca6b595

Browse files
ci(pre-commit.ci): autoupdate (#675)
* ci(pre-commit.ci): autoupdate updates: - [github.com/abravalheri/validate-pyproject: v0.19 → v0.22](abravalheri/validate-pyproject@v0.19...v0.22) - [github.com/crate-ci/typos: v1.24.5 → v1.27.0](crate-ci/typos@v1.24.5...v1.27.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.7.2](astral-sh/ruff-pre-commit@v0.6.4...v0.7.2) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](pre-commit/mirrors-mypy@v1.11.2...v1.13.0) * style(pre-commit.ci): auto fixes [...] * fix linting * remove x --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Talley Lambert <[email protected]>
1 parent 058d63c commit ca6b595

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ ci:
55

66
repos:
77
- repo: https://github.com/abravalheri/validate-pyproject
8-
rev: v0.19
8+
rev: v0.22
99
hooks:
1010
- id: validate-pyproject
1111

1212
- repo: https://github.com/crate-ci/typos
13-
rev: v1.24.5
13+
rev: typos-dict-v0.11.34
1414
hooks:
1515
- id: typos
1616

1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.6.4
18+
rev: v0.7.3
1919
hooks:
2020
- id: ruff
2121
args: ["--fix"]
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.11.2
24+
rev: v1.13.0
2525
hooks:
2626
- id: mypy
2727
files: "^src/"

src/magicgui/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def call_it() -> T:
6666

6767
return debounced
6868

69-
return decorator if function is None else decorator(function) # type: ignore
69+
return decorator if function is None else decorator(function)
7070

7171

7272
def throttle(t: float) -> Callable[[Callable[P, T]], Callable[P, T | None]]:

src/magicgui/schema/_ui_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def __post_init__(self) -> None:
166166
decimal_places: int | None = field(
167167
default=None,
168168
metadata={
169-
"descripion": "Maximum number of digits within the decimal. It does "
169+
"description": "Maximum number of digits within the decimal. It does "
170170
"not include trailing decimal zeroes."
171171
},
172172
)

src/magicgui/widgets/_function_gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _disable_button_and_call() -> None:
225225
self._call_button = cast(PushButton, self._call_button)
226226
self._call_button.enabled = False
227227
try:
228-
self.__call__()
228+
self.__call__() # type: ignore [call-arg]
229229
finally:
230230
self._call_button.enabled = True
231231

@@ -257,7 +257,7 @@ def _on_change(self) -> None:
257257
if self.persist:
258258
self._dump()
259259
if self._auto_call:
260-
self()
260+
self() # type: ignore [call-arg]
261261

262262
@property
263263
def call_button(self) -> PushButton | None:

src/magicgui/widgets/bases/_categorical_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def choices(self) -> tuple[T | None, ...]:
131131

132132
@choices.setter
133133
def choices(self, choices: ChoicesType) -> None:
134-
str_func: Callable = _get_name if isinstance(choices, EnumMeta) else str # type: ignore
134+
str_func: Callable = _get_name if isinstance(choices, EnumMeta) else str
135135
if isinstance(choices, dict):
136136
if "choices" not in choices or "key" not in choices:
137137
raise ValueError(

0 commit comments

Comments
 (0)