update dev dependencies

This commit is contained in:
David Lord 2025-06-08 09:52:11 -07:00
parent c07b201ce3
commit f04c5e6964
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
11 changed files with 231 additions and 221 deletions

View file

@ -187,8 +187,8 @@ def copy_current_request_context(f: F) -> F:
ctx = ctx.copy()
def wrapper(*args: t.Any, **kwargs: t.Any) -> t.Any:
with ctx: # type: ignore[union-attr]
return ctx.app.ensure_sync(f)(*args, **kwargs) # type: ignore[union-attr]
with ctx:
return ctx.app.ensure_sync(f)(*args, **kwargs)
return update_wrapper(wrapper, f) # type: ignore[return-value]

View file

@ -392,7 +392,7 @@ def _prepare_send_file_kwargs(**kwargs: t.Any) -> dict[str, t.Any]:
environ=request.environ,
use_x_sendfile=current_app.config["USE_X_SENDFILE"],
response_class=current_app.response_class,
_root_path=current_app.root_path, # type: ignore
_root_path=current_app.root_path,
)
return kwargs

View file

@ -423,7 +423,7 @@ class App(Scaffold):
)
@cached_property
def name(self) -> str: # type: ignore
def name(self) -> str:
"""The name of the application. This is usually the import name
with the difference that it's guessed from the run file if the
import name is main. This name is used as a display name when

View file

@ -84,7 +84,7 @@ class Scaffold:
#: to. Do not change this once it is set by the constructor.
self.import_name = import_name
self.static_folder = static_folder # type: ignore
self.static_folder = static_folder
self.static_url_path = static_url_path
#: The path to the templates folder, relative to

View file

@ -107,7 +107,7 @@ class NullSession(SecureCookieSession):
"application to something unique and secret."
)
__setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail # type: ignore # noqa: B950
__setitem__ = __delitem__ = clear = pop = popitem = update = setdefault = _fail # noqa: B950
del _fail

View file

@ -85,7 +85,7 @@ class EnvironBuilder(werkzeug.test.EnvironBuilder):
self.app = app
super().__init__(path, base_url, *args, **kwargs)
def json_dumps(self, obj: t.Any, **kwargs: t.Any) -> str: # type: ignore
def json_dumps(self, obj: t.Any, **kwargs: t.Any) -> str:
"""Serialize ``obj`` to a JSON-formatted string.
The serialization will be configured according to the config associated