Skip to content

Commit

Permalink
typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Sep 15, 2024
1 parent 8885fea commit 5e39387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_openapi/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class Lookup(msgspec.Struct):
assert schema.properties["str_field"].description == "description" # type: ignore[index]
assert schema.properties["str_field"].title == "title" # type: ignore[index, union-attr]
assert schema.properties["str_field"].max_length == 16 # type: ignore[index, union-attr]
assert sorted(schema.required) == sorted(["str_field", "bytes_field"])
assert schema.properties["bytes_field"].to_schema() == {
assert sorted(schema.required) == sorted(["str_field", "bytes_field"]) # type: ignore[arg-type]
assert schema.properties["bytes_field"].to_schema() == { # type: ignore[index]
"contentEncoding": "utf-8",
"maxLength": 2,
"minLength": 1,
Expand Down

0 comments on commit 5e39387

Please sign in to comment.