Generated-output differences

quicktype output changed between the PR base and tested PR merge revisions.
← Back to the pull request
34test cases
34files differ
34modified
0new
0deleted
72changed lines
+36 −36insertions / deletions
Base a3a3db9e2fd1bfdc69cd2871130a5fcad911edca · PR merge d7617471ef6a14655f063e4afd6a914670e35930 · Head a47f0ca2af043577b9de7e0589adce8554751bf1 · raw patch
Test case

test/inputs/json/misc/0a358.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -13,7 +13,7 @@ def from_str(x: Any) -> str:
1313
1414
1515 def from_datetime(x: Any) -> datetime.datetime:
16- return dateutil.parser.parse(x)
16+ return dateutil.parser.isoparse(x)
1717
1818
1919 def from_int(x: Any) -> int:
Test case

test/inputs/json/misc/0a91a.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -44,7 +44,7 @@ def to_class(c: Type[T], x: Any) -> dict:
4444
4545
4646 def from_datetime(x: Any) -> datetime.datetime:
47- return dateutil.parser.parse(x)
47+ return dateutil.parser.isoparse(x)
4848
4949
5050 def from_list(f: Callable[[Any], T], x: Any) -> list[T]:
Test case

test/inputs/json/misc/16bc5.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/262f0.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -43,7 +43,7 @@ def from_int(x: Any) -> int:
4343
4444
4545 def from_datetime(x: Any) -> datetime.datetime:
46- return dateutil.parser.parse(x)
46+ return dateutil.parser.isoparse(x)
4747
4848
4949 @dataclass
Test case

test/inputs/json/misc/32d5c.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -23,7 +23,7 @@ def from_str(x: Any) -> str:
2323
2424
2525 def from_datetime(x: Any) -> datetime.datetime:
26- return dateutil.parser.parse(x)
26+ return dateutil.parser.isoparse(x)
2727
2828
2929 def from_none(x: Any) -> Any:
Test case

test/inputs/json/misc/337ed.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -15,7 +15,7 @@ def from_int(x: Any) -> int:
1515
1616
1717 def from_datetime(x: Any) -> datetime.datetime:
18- return dateutil.parser.parse(x)
18+ return dateutil.parser.isoparse(x)
1919
2020
2121 def from_str(x: Any) -> str:
Test case

test/inputs/json/misc/3f1ce.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -43,7 +43,7 @@ def from_int(x: Any) -> int:
4343
4444
4545 def from_datetime(x: Any) -> datetime.datetime:
46- return dateutil.parser.parse(x)
46+ return dateutil.parser.isoparse(x)
4747
4848
4949 @dataclass
Test case

test/inputs/json/misc/4c547.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/54d32.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -10,7 +10,7 @@ EnumT = TypeVar("EnumT", bound=Enum)
1010
1111
1212 def from_datetime(x: Any) -> datetime.datetime:
13- return dateutil.parser.parse(x)
13+ return dateutil.parser.isoparse(x)
1414
1515
1616 def from_str(x: Any) -> str:
Test case

test/inputs/json/misc/5eae5.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -8,7 +8,7 @@ T = TypeVar("T")
88
99
1010 def from_datetime(x: Any) -> datetime.datetime:
11- return dateutil.parser.parse(x)
11+ return dateutil.parser.isoparse(x)
1212
1313
1414 def from_int(x: Any) -> int:
Test case

test/inputs/json/misc/6dec6.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -43,7 +43,7 @@ def from_int(x: Any) -> int:
4343
4444
4545 def from_datetime(x: Any) -> datetime.datetime:
46- return dateutil.parser.parse(x)
46+ return dateutil.parser.isoparse(x)
4747
4848
4949 @dataclass
Test case

test/inputs/json/misc/734ad.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -20,7 +20,7 @@ def from_int(x: Any) -> int:
2020
2121
2222 def from_datetime(x: Any) -> datetime.datetime:
23- return dateutil.parser.parse(x)
23+ return dateutil.parser.isoparse(x)
2424
2525
2626 def from_float(x: Any) -> float:
Test case

test/inputs/json/misc/77392.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -15,7 +15,7 @@ def from_str(x: Any) -> str:
1515
1616
1717 def from_datetime(x: Any) -> datetime.datetime:
18- return dateutil.parser.parse(x)
18+ return dateutil.parser.isoparse(x)
1919
2020
2121 def from_none(x: Any) -> Any:
Test case

test/inputs/json/misc/7f568.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -39,7 +39,7 @@ def to_enum(c: Type[EnumT], x: Any) -> EnumT:
3939
4040
4141 def from_datetime(x: Any) -> datetime.datetime:
42- return dateutil.parser.parse(x)
42+ return dateutil.parser.isoparse(x)
4343
4444
4545 def from_dict(f: Callable[[Any], T], x: Any) -> dict[str, T]:
Test case

test/inputs/json/misc/80aff.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -8,7 +8,7 @@ T = TypeVar("T")
88
99
1010 def from_datetime(x: Any) -> datetime.datetime:
11- return dateutil.parser.parse(x)
11+ return dateutil.parser.isoparse(x)
1212
1313
1414 def from_int(x: Any) -> int:
Test case

test/inputs/json/misc/88130.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/9929c.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/9ac3b.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -10,7 +10,7 @@ EnumT = TypeVar("EnumT", bound=Enum)
1010
1111
1212 def from_datetime(x: Any) -> datetime.datetime:
13- return dateutil.parser.parse(x)
13+ return dateutil.parser.isoparse(x)
1414
1515
1616 def from_str(x: Any) -> str:
Test case

test/inputs/json/misc/a0496.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -53,7 +53,7 @@ def from_bool(x: Any) -> bool:
5353
5454
5555 def from_datetime(x: Any) -> datetime.datetime:
56- return dateutil.parser.parse(x)
56+ return dateutil.parser.isoparse(x)
5757
5858
5959 def to_float(x: Any) -> float:
Test case

test/inputs/json/misc/a1eca.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/b4865.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -49,7 +49,7 @@ def from_union(fs, x):
4949
5050
5151 def from_datetime(x: Any) -> datetime.datetime:
52- return dateutil.parser.parse(x)
52+ return dateutil.parser.isoparse(x)
5353
5454
5555 def is_type(t: Type[T], x: Any) -> T:
Test case

test/inputs/json/misc/cf0d8.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/d23d5.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -8,7 +8,7 @@ T = TypeVar("T")
88
99
1010 def from_datetime(x: Any) -> datetime.datetime:
11- return dateutil.parser.parse(x)
11+ return dateutil.parser.isoparse(x)
1212
1313
1414 def from_str(x: Any) -> str:
Test case

test/inputs/json/misc/dbfb3.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -43,7 +43,7 @@ def from_int(x: Any) -> int:
4343
4444
4545 def from_datetime(x: Any) -> datetime.datetime:
46- return dateutil.parser.parse(x)
46+ return dateutil.parser.isoparse(x)
4747
4848
4949 @dataclass
Test case

test/inputs/json/misc/df957.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -36,7 +36,7 @@ def from_int(x: Any) -> int:
3636
3737
3838 def from_datetime(x: Any) -> datetime.datetime:
39- return dateutil.parser.parse(x)
39+ return dateutil.parser.isoparse(x)
4040
4141
4242 @dataclass
Test case

test/inputs/json/misc/e2915.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -43,7 +43,7 @@ def from_int(x: Any) -> int:
4343
4444
4545 def from_datetime(x: Any) -> datetime.datetime:
46- return dateutil.parser.parse(x)
46+ return dateutil.parser.isoparse(x)
4747
4848
4949 @dataclass
Test case

test/inputs/json/priority/bug2590.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -14,7 +14,7 @@ def from_str(x: Any) -> str:
1414
1515
1616 def from_datetime(x: Any) -> datetime.datetime:
17- return dateutil.parser.parse(x)
17+ return dateutil.parser.isoparse(x)
1818
1919
2020 def from_none(x: Any) -> Any:
Test case

test/inputs/json/priority/bug2663.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -14,7 +14,7 @@ def from_date(x: Any) -> datetime.date:
1414
1515
1616 def from_datetime(x: Any) -> datetime.datetime:
17- return dateutil.parser.parse(x)
17+ return dateutil.parser.isoparse(x)
1818
1919
2020 def from_str(x: Any) -> str:
Test case

test/inputs/json/priority/keywords.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -21,7 +21,7 @@ def to_class(c: Type[T], x: Any) -> dict:
2121
2222
2323 def from_datetime(x: Any) -> datetime.datetime:
24- return dateutil.parser.parse(x)
24+ return dateutil.parser.isoparse(x)
2525
2626
2727 def from_list(f: Callable[[Any], T], x: Any) -> list[T]:
Test case

test/inputs/json/samples/github-events.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -44,7 +44,7 @@ def to_enum(c: Type[EnumT], x: Any) -> EnumT:
4444
4545
4646 def from_datetime(x: Any) -> datetime.datetime:
47- return dateutil.parser.parse(x)
47+ return dateutil.parser.isoparse(x)
4848
4949
5050 def to_class(c: Type[T], x: Any) -> dict:
Test case

test/inputs/json/samples/null-safe.json

1 generated file · +1 −1
Mpythondefault / quicktype.py+1 −1
@@ -27,7 +27,7 @@ def from_union(fs, x):
2727
2828
2929 def from_datetime(x: Any) -> datetime.datetime:
30- return dateutil.parser.parse(x)
30+ return dateutil.parser.isoparse(x)
3131
3232
3333 def from_int(x: Any) -> int:
Test case

test/inputs/schema/date-time-or-string.schema

1 generated file · +1 −1
Mschema-pythondefault / quicktype.py+1 −1
@@ -10,7 +10,7 @@ EnumT = TypeVar("EnumT", bound=Enum)
1010
1111
1212 def from_datetime(x: Any) -> datetime.datetime:
13- return dateutil.parser.parse(x)
13+ return dateutil.parser.isoparse(x)
1414
1515
1616 def from_union(fs, x):
Test case

test/inputs/schema/date-time.schema

1 generated file · +2 −2
Mschema-pythondefault / quicktype.py+2 −2
@@ -21,7 +21,7 @@ def from_int(x: Any) -> int:
2121
2222
2323 def from_datetime(x: Any) -> datetime.datetime:
24- return dateutil.parser.parse(x)
24+ return dateutil.parser.isoparse(x)
2525
2626
2727 def from_union(fs, x):
@@ -39,7 +39,7 @@ def from_date(x: Any) -> datetime.date:
3939
4040
4141 def from_time(x: Any) -> datetime.time:
42- assert isinstance(x, str) and re.match(r"^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$", x)
42+ assert isinstance(x, str) and re.match(r"^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})?$", x)
4343 return dateutil.parser.parse(x).timetz()
Test case

test/inputs/schema/optional-date-time.schema

1 generated file · +2 −2
Mschema-pythondefault / quicktype.py+2 −2
@@ -14,11 +14,11 @@ def from_date(x: Any) -> datetime.date:
1414
1515
1616 def from_datetime(x: Any) -> datetime.datetime:
17- return dateutil.parser.parse(x)
17+ return dateutil.parser.isoparse(x)
1818
1919
2020 def from_time(x: Any) -> datetime.time:
21- assert isinstance(x, str) and re.match(r"^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?$", x)
21+ assert isinstance(x, str) and re.match(r"^\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})?$", x)
2222 return dateutil.parser.parse(x).timetz()
No generated files match these filters.