Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Dec 17, 2023
1 parent 146ac68 commit e269750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_type_alias_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_recursive_type_alias_name():
class MyGeneric(Generic[T]):
field: T

MyRecursiveType = TypeAliasType('MyRecursiveType', MyGeneric['MyRecursiveType'] | int)
MyRecursiveType = TypeAliasType('MyRecursiveType', Union[MyGeneric['MyRecursiveType'], int])
json_schema = TypeAdapter(MyRecursiveType).json_schema()
assert sorted(json_schema['$defs'].keys()) == ['MyGeneric_MyRecursiveType_', 'MyRecursiveType']

Expand Down

0 comments on commit e269750

Please sign in to comment.