Skip to content

Commit

Permalink
fix: add ignore for mypy update
Browse files Browse the repository at this point in the history
  • Loading branch information
adhtruong committed Jan 14, 2025
1 parent 2bd242b commit c34ca41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pydantic_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def test_factory_use_construct() -> None:
# factory should pass values without validation
invalid_age = "non_valid_age"
non_validated_pet = PetFactory.build(factory_use_construct=True, age=invalid_age)
assert non_validated_pet.age == invalid_age
assert non_validated_pet.age == invalid_age # type: ignore[comparison-overlap]

with pytest.raises(ValidationError):
PetFactory.build(age=invalid_age)
Expand Down

0 comments on commit c34ca41

Please sign in to comment.