Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zmievsa committed Feb 27, 2025
1 parent 2325af7 commit 6ad585d
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 68 deletions.
2 changes: 1 addition & 1 deletion cadwyn/_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _generate_field_ast(field: PydanticFieldWrapper) -> ast.Call:
func=ast.Name("Field"),
args=[],
keywords=[
ast.keyword(arg=attr, value=ast.parse(get_fancy_repr(attr_value), mode="eval").body)
ast.keyword(arg=attr, value=ast.parse(get_fancy_repr(attr_value), mode="eval").body) # pyright: ignore
for attr, attr_value in field.passed_field_attributes.items()
],
)
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def version_change(
| AlterEndpointSubInstruction
| AlterEnumSubInstruction,
**body_items: Any,
):
) -> type[VersionChange]:
return type(VersionChange)(
"MyVersionChange", # pyright: ignore[reportCallIssue]
"MyVersionChange", # pyright: ignore
(VersionChange,),
{
"description": "",
Expand Down
5 changes: 1 addition & 4 deletions tests/test_data_migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,7 @@ def test__schema_migration_syntax__with_methods_after_a_schema__should_raise_err
TypeError,
match=re.escape("If schema was provided as a first argument, all other arguments must also be schemas"),
):
convert_request_to_next_version_for( # pyright: ignore[reportCallIssue]
AnyRequestSchema,
["POST"], # pyright: ignore[reportArgumentType]
)
convert_request_to_next_version_for(AnyRequestSchema, ["POST"]) # pyright: ignore


def test__schema_migration_syntax__with_additional_schemas_after_methods__should_raise_error():
Expand Down
Loading

0 comments on commit 6ad585d

Please sign in to comment.