update pre-commit hooks

This commit is contained in:
David Lord 2024-04-06 16:14:49 -07:00
parent d5e321b792
commit 0a8735404d
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
7 changed files with 13 additions and 20 deletions

View file

@ -176,7 +176,7 @@ def test_jsonify_aware_datetimes(tz):
def test_jsonify_uuid_types(app, client):
"""Test jsonify with uuid.UUID types"""
test_uuid = uuid.UUID(bytes=b"\xDE\xAD\xBE\xEF" * 4)
test_uuid = uuid.UUID(bytes=b"\xde\xad\xbe\xef" * 4)
url = "/uuid_test"
app.add_url_rule(url, url, lambda: flask.jsonify(x=test_uuid))

View file

@ -17,20 +17,16 @@ async def after_async(response: Response) -> Response:
@app.before_request
def before_sync() -> None:
...
def before_sync() -> None: ...
@app.before_request
async def before_async() -> None:
...
async def before_async() -> None: ...
@app.teardown_appcontext
def teardown_sync(exc: BaseException | None) -> None:
...
def teardown_sync(exc: BaseException | None) -> None: ...
@app.teardown_appcontext
async def teardown_async(exc: BaseException | None) -> None:
...
async def teardown_async(exc: BaseException | None) -> None: ...