Skip to content

Commit

Permalink
Fix pyright warning in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Aug 26, 2024
1 parent e9f2c8f commit f25e014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_ordered_set_validation_error():
],
)
def test_url_validate(raw_url: str, want_url: URL):
ta = TypeAdapter(PydanticURL)
ta = TypeAdapter[URL](PydanticURL)

assert ta.validate_python(raw_url) == URL(want_url)

Expand All @@ -59,6 +59,6 @@ def test_url_validate(raw_url: str, want_url: URL):
],
)
def test_url_serialize(url: URL, want_raw_url: str):
ta = TypeAdapter(PydanticURL)
ta = TypeAdapter[URL](PydanticURL)

assert ta.dump_python(url) == want_raw_url

0 comments on commit f25e014

Please sign in to comment.