Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1066

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- id: django-upgrade
args: [--target-version, '3.2']
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/adamchainz/blacken-docs
Expand Down
8 changes: 6 additions & 2 deletions src/django_mysql/models/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def __init__(
self,
expression: ExpressionArgument,
to_add: dict[
str, ExpressionArgument | float | int | dt.date | dt.time | dt.datetime
str,
ExpressionArgument | float | int | dt.date | dt.time | dt.datetime,
],
) -> None:
from django_mysql.models.fields import DynamicField
Expand Down Expand Up @@ -455,5 +456,8 @@ def __init__(
raise ValueError(f"Invalid data_type {data_type!r}")

super().__init__(
expression, column_name, output_field=output_field, data_type=data_type
expression,
column_name,
output_field=output_field,
data_type=data_type,
)
1 change: 1 addition & 0 deletions src/django_mysql/rewrite_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
queries and using them to rewrite that query. This is done to support query
hints whilst obviating patching Django's ORM in complex ways.
"""

from __future__ import annotations

import operator
Expand Down