Skip to content

Commit 2f7ce62

Browse files
committed
Update test
1 parent 13daffa commit 2f7ce62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,7 @@ def fail(hint: Any, value: Any) -> None:
373373
# just accepting any dict.
374374
ok(MyTypedDictNotTotal, {"foo": "bar"})
375375
ok(MyTypedDict, {"foo": "bar", "blah": "meh"})
376-
# Note, dicts can't have int key in JSON
377-
fail(Dict[int, str], {1: "2"})
376+
ok(Dict[int, str], {1: "2"})
378377

379378
# Alias
380379
ok(MyDataClassAlias, MyDataClass("foo", 5, SerializableEnum.FOO))

0 commit comments

Comments
 (0)