quicktype-core 23.0.135 → 23.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/language/Python.js +1 -1
- package/package.json +2 -2
package/dist/language/Python.js
CHANGED
|
@@ -535,7 +535,7 @@ class JSONPythonRenderer extends PythonRenderer {
|
|
|
535
535
|
}
|
|
536
536
|
emitToFloatConverter() {
|
|
537
537
|
this.emitBlock(["def to_float(", this.typingDecl("x", "Any"), ")", this.typeHint(" -> float"), ":"], () => {
|
|
538
|
-
this.emitLine("assert isinstance(x, float)");
|
|
538
|
+
this.emitLine("assert isinstance(x, (int, float))");
|
|
539
539
|
this.emitLine("return x");
|
|
540
540
|
});
|
|
541
541
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype-core",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.137",
|
|
4
4
|
"description": "The quicktype engine as a library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"unicode-properties": "^1.4.1",
|
|
27
27
|
"urijs": "^1.19.1",
|
|
28
28
|
"wordwrap": "^1.0.0",
|
|
29
|
-
"yaml": "^2.
|
|
29
|
+
"yaml": "^2.4.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/browser-or-node": "^1.3.2",
|