Bug(CI): Updated lockfile changes type checking CI causing failures
Closed this issue · 0 comments
JacobCoffee commented
Description
https://github.com/litestar-org/polyfactory/actions/runs/8928572773/job/24524431663
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
polyfactory/value_generators/constrained_dates.py:41: error: Redundant cast to "date" [redundant-cast]
polyfactory/factories/base.py:508: error: Argument 1 to "UUID" has incompatible type "bytes | str | UUID"; expected "str | None" [arg-type]
tests/test_random_configuration.py:68: error: Redundant cast to "int" [redundant-cast]
polyfactory/factories/pydantic_factory.py:546: error: Incompatible return value type (got "dict[Any, object]", expected "dict[Any, Callable[[], Any]]") [return-value]
tests/test_recursive_models.py:56: error: Non-overlapping identity check (left operand type: "PydanticNode", right operand type: "type[_Sentinel]") [comparison-overlap]
docs/examples/decorators/test_example_1.py:19: error: Returning Any from function declared to return "datetime" [no-any-return]
docs/examples/decorators/test_example_1.py:19: error: Redundant cast to "timedelta" [redundant-cast]
polyfactory/factories/beanie_odm_factory.py:32: error: Unused "type: ignore" comment [unused-ignore]
Found 8 errors in 7 files (checked 129 source files)
URL to code causing the issue
No response
MCVE
No response
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Release Version
CI
Platform
- Linux
- Mac
- Windows
- Other (Please specify in the description above)
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
- If you would like to see an issue prioritized, make a pledge towards it!
- We receive the pledge once the issue is completed & verified
- This, along with engagement in the community, helps us know which features are a priority to our users.