Skip to content

Commit

Permalink
chore: update pre commit (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
guacs committed Jan 11, 2024
1 parent 8dc8e1a commit bb433a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ repos:
exclude: "test_decimal_constraints|examples/fields/test_example_2|examples/configuration|tools/"
additional_dependencies:
[
attrs>=22.2.0,
beanie,
faker,
hypothesis,
Expand All @@ -65,6 +66,7 @@ repos:
exclude: "tests"
additional_dependencies:
[
attrs>=22.2.0,
beanie,
faker,
hypothesis,
Expand Down
2 changes: 1 addition & 1 deletion polyfactory/factories/attrs_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def resolve_types(cls, model: type[T], **kwargs: Any) -> None:
:param kwargs: Any parameters that need to be passed to `attrs.resolve_types`.
"""

attrs.resolve_types(model, **kwargs) # type: ignore[type-var]
attrs.resolve_types(model, **kwargs)
2 changes: 1 addition & 1 deletion tests/test_beanie_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MyOtherFactory(BeanieDocumentFactory):

@pytest.fixture()
async def beanie_init(mongo_connection: AsyncMongoMockClient) -> None:
await init_beanie(database=mongo_connection.db_name, document_models=[MyDocument, MyOtherDocument]) # type: ignore
await init_beanie(database=mongo_connection.db_name, document_models=[MyDocument, MyOtherDocument])


async def test_handling_of_beanie_types(beanie_init: Callable) -> None:
Expand Down

0 comments on commit bb433a4

Please sign in to comment.