Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1066)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black-pre-commit-mirror: 23.12.1 →
24.1.1](psf/black-pre-commit-mirror@23.12.1...24.1.1)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Adam Johnson <me@adamj.eu>
  • Loading branch information
pre-commit-ci[bot] and adamchainz committed Feb 9, 2024
1 parent 53ae713 commit bc61b49
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
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

0 comments on commit bc61b49

Please sign in to comment.