Skip to content

Commit 954f568

Browse files
committed
update dev dependencies
1 parent 9fcd34c commit 954f568

3 files changed

Lines changed: 441 additions & 383 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: c60c980e561ed3e73101667fe8365c609d19a438 # frozen: v0.15.9
3+
rev: 5e2fb545eba1ea9dc051f6f962d52fe8f76a9794 # frozen: v0.15.13
44
hooks:
55
- id: ruff-check
66
- id: ruff-format
77
- repo: https://github.com/astral-sh/uv-pre-commit
8-
rev: 0397b68f6f88c024f1d2b355a9818779f6336d16 # frozen: 0.11.3
8+
rev: fa60a193803535a9e2accdb3ca4b1b584b1150cb # frozen: 0.11.15
99
hooks:
1010
- id: uv-lock
1111
- repo: https://github.com/codespell-project/codespell

src/flask/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def _set_app(ctx: click.Context, param: click.Option, value: str | None) -> str
468468
def _set_debug(ctx: click.Context, param: click.Option, value: bool) -> bool | None:
469469
# If the flag isn't provided, it will default to False. Don't use
470470
# that, let debug be set by env in that case.
471-
source = ctx.get_parameter_source(param.name) # type: ignore[arg-type]
471+
source = ctx.get_parameter_source(param.name)
472472

473473
if source is not None and source in (
474474
ParameterSource.DEFAULT,
@@ -777,7 +777,7 @@ def show_server_banner(debug: bool, app_import_path: str | None) -> None:
777777
click.echo(f" * Debug mode: {'on' if debug else 'off'}")
778778

779779

780-
class CertParamType(click.ParamType):
780+
class CertParamType(click.ParamType[str | os.PathLike[str] | ssl.SSLContext]):
781781
"""Click option type for the ``--cert`` option. Allows either an
782782
existing file, the string ``'adhoc'``, or an import for a
783783
:class:`~ssl.SSLContext` object.
@@ -803,7 +803,7 @@ def convert(
803803
try:
804804
return self.path_type(value, param, ctx)
805805
except click.BadParameter:
806-
value = click.STRING(value, param, ctx).lower()
806+
value = click.STRING(value, param, ctx).lower() # type: ignore[union-attr]
807807

808808
if value == "adhoc":
809809
try:

0 commit comments

Comments
 (0)