Skip to content

Commit

Permalink
update pre-commit
Browse files Browse the repository at this point in the history
* update files failing
  • Loading branch information
07pepa committed Oct 11, 2024
1 parent cbf8a74 commit ef58386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.9
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.2
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion beanie/odm/queries/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ def __await__(
document = yield from self._find_one().__await__() # type: ignore
if document is None:
return None
if type(document) == self.projection_model:
if type(document) is self.projection_model:
return cast(FindQueryResultType, document)
return cast(
FindQueryResultType, parse_obj(self.projection_model, document)
Expand Down

0 comments on commit ef58386

Please sign in to comment.