Skip to content

Commit b0dc48f

Browse files
[pre-commit.ci] pre-commit autoupdate (pallets-eco#1300)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pamela Fox <[email protected]>
1 parent 538f043 commit b0dc48f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
files: "^(?!examples/)"
1414
args: ["--py38-plus", "--application-directories", "src"]
1515
- repo: https://github.com/psf/black
16-
rev: 23.11.0
16+
rev: 23.12.1
1717
hooks:
1818
- id: black
1919
args: ["--target-version", "py38"]

src/flask_sqlalchemy/model.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ class _QueryProperty:
1919
"""
2020

2121
def __get__(self, obj: Model | None, cls: type[Model]) -> Query:
22-
return cls.query_class(
23-
cls, session=cls.__fsa__.session() # type: ignore[arg-type]
24-
)
22+
return cls.query_class(cls, session=cls.__fsa__.session())
2523

2624

2725
class Model:

0 commit comments

Comments
 (0)