Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1300)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and pamelafox authored Jan 15, 2024
1 parent 538f043 commit b0dc48f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
files: "^(?!examples/)"
args: ["--py38-plus", "--application-directories", "src"]
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 23.12.1
hooks:
- id: black
args: ["--target-version", "py38"]
Expand Down
4 changes: 1 addition & 3 deletions src/flask_sqlalchemy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ class _QueryProperty:
"""

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


class Model:
Expand Down

0 comments on commit b0dc48f

Please sign in to comment.