Skip to content

Commit 694dad6

Browse files
committed
Fix type errors in tests
1 parent 99932b7 commit 694dad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_schema_generation/test_schema_field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ class SchemaWithoutClassVar(BaseModel):
879879
old_model = schemas["2000-01-01"][SchemaWithoutClassVar]
880880

881881
assert not hasattr(latest_model, "new_config")
882-
assert mid_model.new_config == "added_config"
883-
assert old_model.new_config == "added_config"
882+
assert mid_model.new_config == "added_config" # pyright: ignore[reportAttributeAccessIssue]
883+
assert old_model.new_config == "added_config" # pyright: ignore[reportAttributeAccessIssue]
884884

885885
assert not hasattr(latest_model, "new_config_without_value")
886886
assert not hasattr(mid_model, "new_config_without_value")

0 commit comments

Comments
 (0)