@alloy-js/python 0.4.0 → 0.5.0-dev.1
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/dev/src/builtins/python.js +46 -0
- package/dist/dev/src/builtins/python.js.map +1 -1
- package/dist/dev/src/components/ClassDeclaration.js +19 -10
- package/dist/dev/src/components/ClassDeclaration.js.map +1 -1
- package/dist/dev/src/components/ClassMethodDeclaration.js +20 -5
- package/dist/dev/src/components/ClassMethodDeclaration.js.map +1 -1
- package/dist/dev/src/components/DataclassDeclaration.js +14 -12
- package/dist/dev/src/components/DataclassDeclaration.js.map +1 -1
- package/dist/dev/src/components/DecoratorList.js +55 -0
- package/dist/dev/src/components/DecoratorList.js.map +1 -0
- package/dist/dev/src/components/EnumDeclaration.js +21 -12
- package/dist/dev/src/components/EnumDeclaration.js.map +1 -1
- package/dist/dev/src/components/FunctionBase.js +21 -10
- package/dist/dev/src/components/FunctionBase.js.map +1 -1
- package/dist/dev/src/components/FutureStatement.js +1 -1
- package/dist/dev/src/components/MethodBase.js +16 -4
- package/dist/dev/src/components/MethodBase.js.map +1 -1
- package/dist/dev/src/components/PropertyDeclaration.js +68 -17
- package/dist/dev/src/components/PropertyDeclaration.js.map +1 -1
- package/dist/dev/src/components/PydanticClassDeclaration.js +136 -0
- package/dist/dev/src/components/PydanticClassDeclaration.js.map +1 -0
- package/dist/dev/src/components/StaticMethodDeclaration.js +19 -5
- package/dist/dev/src/components/StaticMethodDeclaration.js.map +1 -1
- package/dist/dev/src/components/index.js +1 -0
- package/dist/dev/src/components/index.js.map +1 -1
- package/dist/dev/test/classdeclarations.test.js +85 -52
- package/dist/dev/test/classdeclarations.test.js.map +1 -1
- package/dist/dev/test/dataclassdeclarations.test.js +122 -89
- package/dist/dev/test/dataclassdeclarations.test.js.map +1 -1
- package/dist/dev/test/decoratorlist.test.js +84 -0
- package/dist/dev/test/decoratorlist.test.js.map +1 -0
- package/dist/dev/test/enums.test.js +41 -10
- package/dist/dev/test/enums.test.js.map +1 -1
- package/dist/dev/test/functiondeclaration.test.js +81 -61
- package/dist/dev/test/functiondeclaration.test.js.map +1 -1
- package/dist/dev/test/methoddeclaration.test.js +117 -26
- package/dist/dev/test/methoddeclaration.test.js.map +1 -1
- package/dist/dev/test/propertydeclaration.test.js +109 -7
- package/dist/dev/test/propertydeclaration.test.js.map +1 -1
- package/dist/dev/test/pydanticclassdeclarations.test.js +1137 -0
- package/dist/dev/test/pydanticclassdeclarations.test.js.map +1 -0
- package/dist/src/builtins/python.d.ts +30 -0
- package/dist/src/builtins/python.d.ts.map +1 -1
- package/dist/src/builtins/python.js +46 -0
- package/dist/src/builtins/python.js.map +1 -1
- package/dist/src/components/ClassDeclaration.d.ts +21 -0
- package/dist/src/components/ClassDeclaration.d.ts.map +1 -1
- package/dist/src/components/ClassDeclaration.js +6 -1
- package/dist/src/components/ClassDeclaration.js.map +1 -1
- package/dist/src/components/ClassMethodDeclaration.d.ts +5 -1
- package/dist/src/components/ClassMethodDeclaration.d.ts.map +1 -1
- package/dist/src/components/ClassMethodDeclaration.js +14 -3
- package/dist/src/components/ClassMethodDeclaration.js.map +1 -1
- package/dist/src/components/DataclassDeclaration.d.ts.map +1 -1
- package/dist/src/components/DataclassDeclaration.js +10 -4
- package/dist/src/components/DataclassDeclaration.js.map +1 -1
- package/dist/src/components/DecoratorList.d.ts +43 -0
- package/dist/src/components/DecoratorList.d.ts.map +1 -0
- package/dist/src/components/DecoratorList.js +47 -0
- package/dist/src/components/DecoratorList.js.map +1 -0
- package/dist/src/components/EnumDeclaration.d.ts +9 -0
- package/dist/src/components/EnumDeclaration.d.ts.map +1 -1
- package/dist/src/components/EnumDeclaration.js +6 -1
- package/dist/src/components/EnumDeclaration.js.map +1 -1
- package/dist/src/components/FunctionBase.d.ts +31 -1
- package/dist/src/components/FunctionBase.d.ts.map +1 -1
- package/dist/src/components/FunctionBase.js +9 -2
- package/dist/src/components/FunctionBase.js.map +1 -1
- package/dist/src/components/FutureStatement.d.ts +1 -1
- package/dist/src/components/FutureStatement.js +1 -1
- package/dist/src/components/MethodBase.d.ts.map +1 -1
- package/dist/src/components/MethodBase.js +10 -2
- package/dist/src/components/MethodBase.js.map +1 -1
- package/dist/src/components/PropertyDeclaration.d.ts +29 -0
- package/dist/src/components/PropertyDeclaration.d.ts.map +1 -1
- package/dist/src/components/PropertyDeclaration.js +48 -1
- package/dist/src/components/PropertyDeclaration.js.map +1 -1
- package/dist/src/components/PydanticClassDeclaration.d.ts +120 -0
- package/dist/src/components/PydanticClassDeclaration.d.ts.map +1 -0
- package/dist/src/components/PydanticClassDeclaration.js +116 -0
- package/dist/src/components/PydanticClassDeclaration.js.map +1 -0
- package/dist/src/components/StaticMethodDeclaration.d.ts +3 -0
- package/dist/src/components/StaticMethodDeclaration.d.ts.map +1 -1
- package/dist/src/components/StaticMethodDeclaration.js +13 -3
- package/dist/src/components/StaticMethodDeclaration.js.map +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +1 -0
- package/dist/src/components/index.js.map +1 -1
- package/dist/test/classdeclarations.test.js +25 -0
- package/dist/test/classdeclarations.test.js.map +1 -1
- package/dist/test/dataclassdeclarations.test.js +25 -0
- package/dist/test/dataclassdeclarations.test.js.map +1 -1
- package/dist/test/decoratorlist.test.d.ts +2 -0
- package/dist/test/decoratorlist.test.d.ts.map +1 -0
- package/dist/test/decoratorlist.test.js +60 -0
- package/dist/test/decoratorlist.test.js.map +1 -0
- package/dist/test/enums.test.js +27 -0
- package/dist/test/enums.test.js.map +1 -1
- package/dist/test/functiondeclaration.test.js +16 -0
- package/dist/test/functiondeclaration.test.js.map +1 -1
- package/dist/test/methoddeclaration.test.js +67 -0
- package/dist/test/methoddeclaration.test.js.map +1 -1
- package/dist/test/propertydeclaration.test.js +71 -1
- package/dist/test/propertydeclaration.test.js.map +1 -1
- package/dist/test/pydanticclassdeclarations.test.d.ts +2 -0
- package/dist/test/pydanticclassdeclarations.test.d.ts.map +1 -0
- package/dist/test/pydanticclassdeclarations.test.js +829 -0
- package/dist/test/pydanticclassdeclarations.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/ClassDeclaration.md +10 -7
- package/docs/api/components/ClassEnumDeclaration.md +9 -6
- package/docs/api/components/ClassMethodDeclaration.md +7 -5
- package/docs/api/components/DataclassDeclaration.md +9 -5
- package/docs/api/components/DunderMethodDeclaration.md +7 -5
- package/docs/api/components/FunctionDeclaration.md +9 -5
- package/docs/api/components/FutureStatement.md +1 -1
- package/docs/api/components/MethodDeclaration.md +11 -6
- package/docs/api/components/PropertyDeclaration.md +11 -8
- package/docs/api/components/PydanticClassDeclaration.md +146 -0
- package/docs/api/components/StaticMethodDeclaration.md +7 -5
- package/docs/api/components/index.md +1 -0
- package/docs/api/index.md +3 -3
- package/docs/api/types/CommonFunctionProps.md +4 -3
- package/docs/api/types/PydanticModelConfigDictProps.md +32 -0
- package/docs/api/types/index.md +1 -0
- package/docs/api/variables/index.md +3 -0
- package/docs/api/variables/pydanticModule.md +27 -0
- package/docs/api/variables/pydanticSettingsModule.md +7 -0
- package/docs/api/variables/typingModule.md +9 -0
- package/package.json +6 -6
- package/src/builtins/python.ts +539 -1
- package/src/components/ClassDeclaration.tsx +23 -0
- package/src/components/ClassMethodDeclaration.tsx +9 -1
- package/src/components/DataclassDeclaration.tsx +18 -11
- package/src/components/DecoratorList.tsx +50 -0
- package/src/components/EnumDeclaration.tsx +11 -0
- package/src/components/FunctionBase.tsx +34 -3
- package/src/components/FutureStatement.tsx +1 -1
- package/src/components/MethodBase.tsx +6 -2
- package/src/components/PropertyDeclaration.tsx +48 -1
- package/src/components/PydanticClassDeclaration.tsx +222 -0
- package/src/components/StaticMethodDeclaration.tsx +7 -1
- package/src/components/index.ts +1 -0
- package/temp/api.json +1142 -84
- package/test/classdeclarations.test.tsx +27 -0
- package/test/dataclassdeclarations.test.tsx +25 -0
- package/test/decoratorlist.test.tsx +95 -0
- package/test/enums.test.tsx +29 -0
- package/test/functiondeclaration.test.tsx +17 -0
- package/test/methoddeclaration.test.tsx +70 -0
- package/test/propertydeclaration.test.tsx +66 -1
- package/test/pydanticclassdeclarations.test.tsx +836 -0
package/temp/api.json
CHANGED
|
@@ -1180,6 +1180,38 @@
|
|
|
1180
1180
|
"startIndex": 1,
|
|
1181
1181
|
"endIndex": 3
|
|
1182
1182
|
}
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"kind": "PropertySignature",
|
|
1186
|
+
"canonicalReference": "@alloy-js/python!ClassDeclarationProps#decorators:member",
|
|
1187
|
+
"docComment": "/**\n * Decorators rendered above the `class` keyword, in source order —\n * `decorators[0]` is topmost. By Python's bottom-up application order, the\n * topmost entry is the outermost decorator (applied last).\n *\n * Each entry should produce a complete decorator line (typically starting\n * with `@`). Falsy entries are skipped, so conditional decorators can be\n * provided inline when needed.\n *\n * Wrappers like `DataclassDeclaration` build their intrinsic decorator\n * (e.g. `@dataclass(...)`) and append it to this list at the position that\n * keeps `@dataclass` closest to the class — i.e. user `decorators` end up\n * **above** the intrinsic one, matching how Pydantic's `@field_validator`\n * sits above `@classmethod` on methods.\n *\n * Do **not** pass a wrapper's intrinsic decorator here. For example, when\n * using `DataclassDeclaration`, do not include `@dataclass(...)` in\n * `decorators` — the component renders it for you, and stacking it twice\n * would produce invalid Python.\n */\n",
|
|
1188
|
+
"excerptTokens": [
|
|
1189
|
+
{
|
|
1190
|
+
"kind": "Content",
|
|
1191
|
+
"text": "decorators?: "
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"kind": "Reference",
|
|
1195
|
+
"text": "Children",
|
|
1196
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "Content",
|
|
1200
|
+
"text": "[]"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"kind": "Content",
|
|
1204
|
+
"text": ";"
|
|
1205
|
+
}
|
|
1206
|
+
],
|
|
1207
|
+
"isReadonly": false,
|
|
1208
|
+
"isOptional": true,
|
|
1209
|
+
"releaseTag": "Public",
|
|
1210
|
+
"name": "decorators",
|
|
1211
|
+
"propertyTypeTokenRange": {
|
|
1212
|
+
"startIndex": 1,
|
|
1213
|
+
"endIndex": 3
|
|
1214
|
+
}
|
|
1183
1215
|
}
|
|
1184
1216
|
],
|
|
1185
1217
|
"extendsTokenRanges": [
|
|
@@ -1614,6 +1646,38 @@
|
|
|
1614
1646
|
"startIndex": 1,
|
|
1615
1647
|
"endIndex": 2
|
|
1616
1648
|
}
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"kind": "PropertySignature",
|
|
1652
|
+
"canonicalReference": "@alloy-js/python!ClassEnumProps#decorators:member",
|
|
1653
|
+
"docComment": "/**\n * Decorators rendered above `class <Name>(<BaseType>):`. See\n * {@link ClassDeclarationProps.decorators} for the source-order and falsy\n * skip semantics.\n *\n * Not available on functional-enum syntax (`Name = Enum(...)`), which is a\n * variable assignment rather than a class definition.\n */\n",
|
|
1654
|
+
"excerptTokens": [
|
|
1655
|
+
{
|
|
1656
|
+
"kind": "Content",
|
|
1657
|
+
"text": "decorators?: "
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "Reference",
|
|
1661
|
+
"text": "Children",
|
|
1662
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"kind": "Content",
|
|
1666
|
+
"text": "[]"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"kind": "Content",
|
|
1670
|
+
"text": ";"
|
|
1671
|
+
}
|
|
1672
|
+
],
|
|
1673
|
+
"isReadonly": false,
|
|
1674
|
+
"isOptional": true,
|
|
1675
|
+
"releaseTag": "Public",
|
|
1676
|
+
"name": "decorators",
|
|
1677
|
+
"propertyTypeTokenRange": {
|
|
1678
|
+
"startIndex": 1,
|
|
1679
|
+
"endIndex": 3
|
|
1680
|
+
}
|
|
1617
1681
|
}
|
|
1618
1682
|
],
|
|
1619
1683
|
"extendsTokenRanges": [
|
|
@@ -1725,7 +1789,7 @@
|
|
|
1725
1789
|
},
|
|
1726
1790
|
{
|
|
1727
1791
|
"kind": "Content",
|
|
1728
|
-
"text": "import(\"@alloy-js/core
|
|
1792
|
+
"text": "import(\"@alloy-js/core\")."
|
|
1729
1793
|
},
|
|
1730
1794
|
{
|
|
1731
1795
|
"kind": "Reference",
|
|
@@ -1759,7 +1823,7 @@
|
|
|
1759
1823
|
{
|
|
1760
1824
|
"kind": "Interface",
|
|
1761
1825
|
"canonicalReference": "@alloy-js/python!ClassMethodDeclarationProps:interface",
|
|
1762
|
-
"docComment": "/**\n * A Python class method declaration component.\n *\n * @example\n * ```tsx\n * <py.ClassMethodDeclaration name=\"create\" parameters={[{ name: \"value\", type: \"str\" }]}>\n * return cls(value)\n * </py.ClassMethodDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @classmethod\n * def create(cls, value: str) -> None:\n * return cls(value)\n * ```\n *\n */\n",
|
|
1826
|
+
"docComment": "/**\n * A Python class method declaration component.\n *\n * @remarks\n *\n *\n * Use **`decorators`** for decorators that must appear above `@classmethod`\n * (for example Pydantic `@field_validator`).\n *\n * @example\n * ```tsx\n * <py.ClassMethodDeclaration name=\"create\" parameters={[{ name: \"value\", type: \"str\" }]}>\n * return cls(value)\n * </py.ClassMethodDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @classmethod\n * def create(cls, value: str) -> None:\n * return cls(value)\n * ```\n *\n */\n",
|
|
1763
1827
|
"excerptTokens": [
|
|
1764
1828
|
{
|
|
1765
1829
|
"kind": "Content",
|
|
@@ -1874,6 +1938,38 @@
|
|
|
1874
1938
|
"startIndex": 1,
|
|
1875
1939
|
"endIndex": 2
|
|
1876
1940
|
}
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "PropertySignature",
|
|
1944
|
+
"canonicalReference": "@alloy-js/python!CommonFunctionProps#decorators:member",
|
|
1945
|
+
"docComment": "/**\n * Decorators rendered above `def`, in source order — `decorators[0]` is\n * topmost. By Python's bottom-up application order, the topmost entry is\n * the **outermost** decorator (applied last) and wraps the result of every\n * decorator below it.\n *\n * Each entry should produce a complete decorator line (typically starting\n * with `@`). Falsy entries (other than `0`) are skipped, so conditional\n * decorators can be provided inline when needed.\n *\n * When used through wrappers that emit an intrinsic decorator\n * (`ClassMethodDeclaration` → `@classmethod`,\n * `StaticMethodDeclaration` → `@staticmethod`,\n * `PropertyDeclaration` → `@property`), these decorators are rendered\n * **above** the intrinsic line — the correct position for Pydantic's\n * `@field_validator` / `@model_validator` and other wrappers that must\n * see the underlying function, not a descriptor.\n *\n * When used on plain `MethodDeclaration` / `FunctionDeclaration`, these\n * decorators are rendered above `@abstractmethod` (if `abstract` is set)\n * and above `def`.\n *\n * Do **not** pass intrinsic decorators here — i.e. `@classmethod`,\n * `@staticmethod`, `@property`, or `@abstractmethod`. Those are emitted by\n * the matching component (`ClassMethodDeclaration`, `StaticMethodDeclaration`,\n * `PropertyDeclaration`, or the `abstract` flag) and would otherwise be\n * stacked twice in the output, producing invalid Python.\n */\n",
|
|
1946
|
+
"excerptTokens": [
|
|
1947
|
+
{
|
|
1948
|
+
"kind": "Content",
|
|
1949
|
+
"text": "decorators?: "
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"kind": "Reference",
|
|
1953
|
+
"text": "Children",
|
|
1954
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"kind": "Content",
|
|
1958
|
+
"text": "[]"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"kind": "Content",
|
|
1962
|
+
"text": ";"
|
|
1963
|
+
}
|
|
1964
|
+
],
|
|
1965
|
+
"isReadonly": false,
|
|
1966
|
+
"isOptional": true,
|
|
1967
|
+
"releaseTag": "Public",
|
|
1968
|
+
"name": "decorators",
|
|
1969
|
+
"propertyTypeTokenRange": {
|
|
1970
|
+
"startIndex": 1,
|
|
1971
|
+
"endIndex": 3
|
|
1972
|
+
}
|
|
1877
1973
|
}
|
|
1878
1974
|
],
|
|
1879
1975
|
"extendsTokenRanges": [
|
|
@@ -4398,7 +4494,7 @@
|
|
|
4398
4494
|
{
|
|
4399
4495
|
"kind": "Function",
|
|
4400
4496
|
"canonicalReference": "@alloy-js/python!FutureStatement:function(1)",
|
|
4401
|
-
"docComment": "/**\n * A future statement that imports features from __future__.\n *\n * Future statements are directives to the compiler that a particular module\n * should be compiled using syntax or semantics from a future Python release.\n * They must appear near the top of the module, after the module docstring (if any).\n *\n * Use this in the `futureImports` prop of SourceFile to ensure proper placement.\n *\n * @example\n * ```tsx\n * <SourceFile path=\"models.py\" futureImports={<FutureStatement feature=\"annotations\" />}>\n * <ClassDeclaration name=\"User\">\n * <PropertyDeclaration name=\"manager\" type=\"User\" />\n * </ClassDeclaration>\n * </SourceFile>\n * ```\n *\n * renders to\n * ```py\n * from __future__ import annotations\n *\n *\n * class User:\n * manager: User\n * ```\n *\n */\n",
|
|
4497
|
+
"docComment": "/**\n * A future statement that imports features from __future__.\n *\n * Future statements are directives to the compiler that a particular module\n * should be compiled using syntax or semantics from a future Python release.\n * They must appear near the top of the module, after the module docstring (if any).\n *\n * Use this in the `futureImports` prop of SourceFile to ensure proper placement.\n *\n * @example\n * ```tsx\n * <SourceFile path=\"models.py\" futureImports={[<FutureStatement feature=\"annotations\" />]}>\n * <ClassDeclaration name=\"User\">\n * <PropertyDeclaration name=\"manager\" type=\"User\" />\n * </ClassDeclaration>\n * </SourceFile>\n * ```\n *\n * renders to\n * ```py\n * from __future__ import annotations\n *\n *\n * class User:\n * manager: User\n * ```\n *\n */\n",
|
|
4402
4498
|
"excerptTokens": [
|
|
4403
4499
|
{
|
|
4404
4500
|
"kind": "Content",
|
|
@@ -7588,7 +7684,7 @@
|
|
|
7588
7684
|
{
|
|
7589
7685
|
"kind": "Interface",
|
|
7590
7686
|
"canonicalReference": "@alloy-js/python!PropertyDeclarationProps:interface",
|
|
7591
|
-
"docComment": "/**\n * Declares a Python property with optional getter, setter, and deleter methods.\n *\n * @remarks\n *\n *\n * The property must be declared within a class. The getter method is\n * automatically generated using the `@property` decorator. Use the nested\n * `Setter` and `Deleter` components to add mutators.\n *\n * @example\n * ```tsx\n * <py.PropertyDeclaration name=\"name\" type={{ children: \"str\" }}>\n * return self._name\n * </py.PropertyDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @property\n * def name(self) -> str:\n * return self._name\n * ```\n *\n * @example\n *\n * Setter and deleter\n * ```tsx\n * <py.PropertyDeclaration name=\"value\" type={{ children: \"int\" }}>\n * return self._value\n * <py.PropertyDeclaration.Setter type={{ children: \"int\" }}>\n * self._value = value\n * </py.PropertyDeclaration.Setter>\n * <py.PropertyDeclaration.Deleter>\n * del self._value\n * </py.PropertyDeclaration.Deleter>\n * </py.PropertyDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @property\n * def value(self) -> int:\n * return self._value\n *\n * @value.setter\n * def value(self, value: int) -> None:\n * self._value = value\n *\n * @value.deleter\n * def value(self) -> None:\n * del self._value\n * ```\n *\n */\n",
|
|
7687
|
+
"docComment": "/**\n * Declares a Python property with optional getter, setter, and deleter methods.\n *\n * @remarks\n *\n *\n * The property must be declared within a class. The getter method is\n * automatically generated using the `@property` decorator. Use the nested\n * `Setter` and `Deleter` components to add mutators.\n *\n * Use **`decorators`** for decorators that must appear **above** the intrinsic\n * `@property` (for example Pydantic `@computed_field`, `@typing.final`,\n * `@typing.override`). The first array entry is rendered topmost, matching\n * Python source order.\n *\n * @example\n * ```tsx\n * <py.PropertyDeclaration name=\"name\" type={{ children: \"str\" }}>\n * return self._name\n * </py.PropertyDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @property\n * def name(self) -> str:\n * return self._name\n * ```\n *\n * @example\n *\n * Setter and deleter\n * ```tsx\n * <py.PropertyDeclaration name=\"value\" type={{ children: \"int\" }}>\n * return self._value\n * <py.PropertyDeclaration.Setter type={{ children: \"int\" }}>\n * self._value = value\n * </py.PropertyDeclaration.Setter>\n * <py.PropertyDeclaration.Deleter>\n * del self._value\n * </py.PropertyDeclaration.Deleter>\n * </py.PropertyDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @property\n * def value(self) -> int:\n * return self._value\n *\n * @value.setter\n * def value(self, value: int) -> None:\n * self._value = value\n *\n * @value.deleter\n * def value(self) -> None:\n * del self._value\n * ```\n *\n * @example\n *\n * Pydantic computed field\n * ```tsx\n * <py.PropertyDeclaration\n * name=\"area\"\n * type=\"float\"\n * decorators={[code`@${pydanticModule[\".\"].computed_field}`]}\n * >\n * return self.width ** 2\n * </py.PropertyDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @computed_field\n * @property\n * def area(self) -> float:\n * return self.width ** 2\n * ```\n *\n */\n",
|
|
7592
7688
|
"excerptTokens": [
|
|
7593
7689
|
{
|
|
7594
7690
|
"kind": "Content",
|
|
@@ -7655,6 +7751,38 @@
|
|
|
7655
7751
|
"endIndex": 2
|
|
7656
7752
|
}
|
|
7657
7753
|
},
|
|
7754
|
+
{
|
|
7755
|
+
"kind": "PropertySignature",
|
|
7756
|
+
"canonicalReference": "@alloy-js/python!PropertyDeclarationProps#decorators:member",
|
|
7757
|
+
"docComment": "/**\n * Decorators rendered above the intrinsic `@property` line, in source order\n * (`decorators[0]` is topmost / applied last). Use for decorators that wrap\n * the resulting property, e.g. Pydantic's `@computed_field`.\n */\n",
|
|
7758
|
+
"excerptTokens": [
|
|
7759
|
+
{
|
|
7760
|
+
"kind": "Content",
|
|
7761
|
+
"text": "decorators?: "
|
|
7762
|
+
},
|
|
7763
|
+
{
|
|
7764
|
+
"kind": "Reference",
|
|
7765
|
+
"text": "Children",
|
|
7766
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
7767
|
+
},
|
|
7768
|
+
{
|
|
7769
|
+
"kind": "Content",
|
|
7770
|
+
"text": "[]"
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
"kind": "Content",
|
|
7774
|
+
"text": ";"
|
|
7775
|
+
}
|
|
7776
|
+
],
|
|
7777
|
+
"isReadonly": false,
|
|
7778
|
+
"isOptional": true,
|
|
7779
|
+
"releaseTag": "Public",
|
|
7780
|
+
"name": "decorators",
|
|
7781
|
+
"propertyTypeTokenRange": {
|
|
7782
|
+
"startIndex": 1,
|
|
7783
|
+
"endIndex": 3
|
|
7784
|
+
}
|
|
7785
|
+
},
|
|
7658
7786
|
{
|
|
7659
7787
|
"kind": "PropertySignature",
|
|
7660
7788
|
"canonicalReference": "@alloy-js/python!PropertyDeclarationProps#doc:member",
|
|
@@ -8134,17 +8262,17 @@
|
|
|
8134
8262
|
},
|
|
8135
8263
|
{
|
|
8136
8264
|
"kind": "Function",
|
|
8137
|
-
"canonicalReference": "@alloy-js/python!
|
|
8138
|
-
"docComment": "/**\n *
|
|
8265
|
+
"canonicalReference": "@alloy-js/python!PydanticClassDeclaration:function(1)",
|
|
8266
|
+
"docComment": "/**\n * Renders a Python class that subclasses Pydantic's `BaseModel`:\n * `class Name(BaseModel): ...`.\n *\n * When `bases` is omitted, the class extends `pydanticModule[\".\"].BaseModel`.\n * Pass `bases` to inherit from another generated class (or to combine bases explicitly).\n *\n * Optional `modelConfig={{...}}` and top-level config props (for example\n * `frozen`, `strict`, `extra`) emit `model_config = ConfigDict(...)` for common\n * Pydantic v2 model settings (see {@link PydanticModelConfigDictProps}).\n * When both are used, top-level props override `modelConfig` keys.\n *\n * Fields are ordinary class body declarations; use `pydanticModule[\".\"].Field` in\n * initializers when you need `Field(...)`.\n *\n * @example\n * ```tsx\n * import { pydanticModule } from \"@alloy-js/python\";\n * import * as py from \"@alloy-js/python\";\n *\n * <py.PydanticClassDeclaration name=\"User\" frozen>\n * <py.VariableDeclaration instanceVariable omitNone name=\"id\" type=\"int\" />\n * <py.VariableDeclaration\n * instanceVariable\n * name=\"name\"\n * type=\"str\"\n * initializer={\"Field(default=\\\"anonymous\\\")\"}\n * />\n * </py.PydanticClassDeclaration>\n * ```\n *\n * ```py\n * from pydantic import BaseModel\n * from pydantic import ConfigDict\n * from pydantic import Field\n *\n * class User(BaseModel):\n * model_config = ConfigDict(frozen=True)\n * id: int\n * name: str = Field(default=\"anonymous\")\n * ```\n *\n */\n",
|
|
8139
8267
|
"excerptTokens": [
|
|
8140
8268
|
{
|
|
8141
8269
|
"kind": "Content",
|
|
8142
|
-
"text": "export declare function
|
|
8270
|
+
"text": "export declare function PydanticClassDeclaration(props: "
|
|
8143
8271
|
},
|
|
8144
8272
|
{
|
|
8145
8273
|
"kind": "Reference",
|
|
8146
|
-
"text": "
|
|
8147
|
-
"canonicalReference": "@alloy-js/python!
|
|
8274
|
+
"text": "PydanticClassDeclarationProps",
|
|
8275
|
+
"canonicalReference": "@alloy-js/python!PydanticClassDeclarationProps:interface"
|
|
8148
8276
|
},
|
|
8149
8277
|
{
|
|
8150
8278
|
"kind": "Content",
|
|
@@ -8160,7 +8288,7 @@
|
|
|
8160
8288
|
"text": ";"
|
|
8161
8289
|
}
|
|
8162
8290
|
],
|
|
8163
|
-
"fileUrlPath": "src/components/
|
|
8291
|
+
"fileUrlPath": "src/components/PydanticClassDeclaration.tsx",
|
|
8164
8292
|
"returnTypeTokenRange": {
|
|
8165
8293
|
"startIndex": 3,
|
|
8166
8294
|
"endIndex": 4
|
|
@@ -8177,78 +8305,77 @@
|
|
|
8177
8305
|
"isOptional": false
|
|
8178
8306
|
}
|
|
8179
8307
|
],
|
|
8180
|
-
"name": "
|
|
8308
|
+
"name": "PydanticClassDeclaration"
|
|
8181
8309
|
},
|
|
8182
8310
|
{
|
|
8183
|
-
"kind": "
|
|
8184
|
-
"canonicalReference": "@alloy-js/python!
|
|
8185
|
-
"docComment": "
|
|
8311
|
+
"kind": "Interface",
|
|
8312
|
+
"canonicalReference": "@alloy-js/python!PydanticClassDeclarationProps:interface",
|
|
8313
|
+
"docComment": "",
|
|
8186
8314
|
"excerptTokens": [
|
|
8187
8315
|
{
|
|
8188
8316
|
"kind": "Content",
|
|
8189
|
-
"text": "export
|
|
8317
|
+
"text": "export interface PydanticClassDeclarationProps extends "
|
|
8190
8318
|
},
|
|
8191
8319
|
{
|
|
8192
8320
|
"kind": "Reference",
|
|
8193
|
-
"text": "
|
|
8194
|
-
"canonicalReference": "@alloy-js/python!
|
|
8321
|
+
"text": "ClassDeclarationProps",
|
|
8322
|
+
"canonicalReference": "@alloy-js/python!ClassDeclarationProps:interface"
|
|
8195
8323
|
},
|
|
8196
8324
|
{
|
|
8197
8325
|
"kind": "Content",
|
|
8198
|
-
"text": "
|
|
8326
|
+
"text": ", "
|
|
8199
8327
|
},
|
|
8200
8328
|
{
|
|
8201
8329
|
"kind": "Reference",
|
|
8202
|
-
"text": "
|
|
8203
|
-
"canonicalReference": "@alloy-js/
|
|
8330
|
+
"text": "PydanticModelConfigDictProps",
|
|
8331
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps:interface"
|
|
8204
8332
|
},
|
|
8205
8333
|
{
|
|
8206
8334
|
"kind": "Content",
|
|
8207
|
-
"text": "
|
|
8335
|
+
"text": " "
|
|
8208
8336
|
}
|
|
8209
8337
|
],
|
|
8210
|
-
"fileUrlPath": "src/components/
|
|
8211
|
-
"returnTypeTokenRange": {
|
|
8212
|
-
"startIndex": 3,
|
|
8213
|
-
"endIndex": 4
|
|
8214
|
-
},
|
|
8338
|
+
"fileUrlPath": "src/components/PydanticClassDeclaration.tsx",
|
|
8215
8339
|
"releaseTag": "Public",
|
|
8216
|
-
"
|
|
8217
|
-
"
|
|
8340
|
+
"name": "PydanticClassDeclarationProps",
|
|
8341
|
+
"preserveMemberOrder": false,
|
|
8342
|
+
"members": [
|
|
8218
8343
|
{
|
|
8219
|
-
"
|
|
8220
|
-
"
|
|
8344
|
+
"kind": "PropertySignature",
|
|
8345
|
+
"canonicalReference": "@alloy-js/python!PydanticClassDeclarationProps#modelConfig:member",
|
|
8346
|
+
"docComment": "/**\n * Canonical structured config object for `ConfigDict(...)`. Values here are\n * merged with top-level config props.\n *\n * Top-level config props take precedence over `modelConfig` when the same key\n * is provided in both places.\n */\n",
|
|
8347
|
+
"excerptTokens": [
|
|
8348
|
+
{
|
|
8349
|
+
"kind": "Content",
|
|
8350
|
+
"text": "modelConfig?: "
|
|
8351
|
+
},
|
|
8352
|
+
{
|
|
8353
|
+
"kind": "Reference",
|
|
8354
|
+
"text": "PydanticModelConfigDictProps",
|
|
8355
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps:interface"
|
|
8356
|
+
},
|
|
8357
|
+
{
|
|
8358
|
+
"kind": "Content",
|
|
8359
|
+
"text": ";"
|
|
8360
|
+
}
|
|
8361
|
+
],
|
|
8362
|
+
"isReadonly": false,
|
|
8363
|
+
"isOptional": true,
|
|
8364
|
+
"releaseTag": "Public",
|
|
8365
|
+
"name": "modelConfig",
|
|
8366
|
+
"propertyTypeTokenRange": {
|
|
8221
8367
|
"startIndex": 1,
|
|
8222
8368
|
"endIndex": 2
|
|
8223
|
-
}
|
|
8224
|
-
|
|
8225
|
-
}
|
|
8226
|
-
],
|
|
8227
|
-
"name": "PyDocExample"
|
|
8228
|
-
},
|
|
8229
|
-
{
|
|
8230
|
-
"kind": "Interface",
|
|
8231
|
-
"canonicalReference": "@alloy-js/python!PyDocExampleProps:interface",
|
|
8232
|
-
"docComment": "",
|
|
8233
|
-
"excerptTokens": [
|
|
8234
|
-
{
|
|
8235
|
-
"kind": "Content",
|
|
8236
|
-
"text": "export interface PyDocExampleProps "
|
|
8237
|
-
}
|
|
8238
|
-
],
|
|
8239
|
-
"fileUrlPath": "src/components/PyDoc.tsx",
|
|
8240
|
-
"releaseTag": "Public",
|
|
8241
|
-
"name": "PyDocExampleProps",
|
|
8242
|
-
"preserveMemberOrder": false,
|
|
8243
|
-
"members": [
|
|
8369
|
+
}
|
|
8370
|
+
},
|
|
8244
8371
|
{
|
|
8245
8372
|
"kind": "PropertySignature",
|
|
8246
|
-
"canonicalReference": "@alloy-js/python!
|
|
8247
|
-
"docComment": "",
|
|
8373
|
+
"canonicalReference": "@alloy-js/python!PydanticClassDeclarationProps#modelConfigExpression:member",
|
|
8374
|
+
"docComment": "/**\n * Emits `model_config = <expression>` verbatim (use for arbitrary `ConfigDict`\n * kwargs or dynamic config). Takes precedence over both `modelConfig` and\n * top-level config props.\n *\n * @example\n *\n *\n * A typical value emits `ConfigDict(frozen=True, extra=\"forbid\")`.\n */\n",
|
|
8248
8375
|
"excerptTokens": [
|
|
8249
8376
|
{
|
|
8250
8377
|
"kind": "Content",
|
|
8251
|
-
"text": "
|
|
8378
|
+
"text": "modelConfigExpression?: "
|
|
8252
8379
|
},
|
|
8253
8380
|
{
|
|
8254
8381
|
"kind": "Reference",
|
|
@@ -8261,45 +8388,53 @@
|
|
|
8261
8388
|
}
|
|
8262
8389
|
],
|
|
8263
8390
|
"isReadonly": false,
|
|
8264
|
-
"isOptional":
|
|
8391
|
+
"isOptional": true,
|
|
8265
8392
|
"releaseTag": "Public",
|
|
8266
|
-
"name": "
|
|
8393
|
+
"name": "modelConfigExpression",
|
|
8267
8394
|
"propertyTypeTokenRange": {
|
|
8268
8395
|
"startIndex": 1,
|
|
8269
8396
|
"endIndex": 2
|
|
8270
8397
|
}
|
|
8271
8398
|
}
|
|
8272
8399
|
],
|
|
8273
|
-
"extendsTokenRanges": [
|
|
8400
|
+
"extendsTokenRanges": [
|
|
8401
|
+
{
|
|
8402
|
+
"startIndex": 1,
|
|
8403
|
+
"endIndex": 2
|
|
8404
|
+
},
|
|
8405
|
+
{
|
|
8406
|
+
"startIndex": 3,
|
|
8407
|
+
"endIndex": 4
|
|
8408
|
+
}
|
|
8409
|
+
]
|
|
8274
8410
|
},
|
|
8275
8411
|
{
|
|
8276
8412
|
"kind": "Interface",
|
|
8277
|
-
"canonicalReference": "@alloy-js/python!
|
|
8278
|
-
"docComment": "",
|
|
8413
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps:interface",
|
|
8414
|
+
"docComment": "/**\n * Keyword-style options for Pydantic v2 `ConfigDict`, using camelCase prop names\n * that map to snake_case Python arguments (for example `validateAssignment` →\n * `validate_assignment`).\n */\n",
|
|
8279
8415
|
"excerptTokens": [
|
|
8280
8416
|
{
|
|
8281
8417
|
"kind": "Content",
|
|
8282
|
-
"text": "export interface
|
|
8418
|
+
"text": "export interface PydanticModelConfigDictProps "
|
|
8283
8419
|
}
|
|
8284
8420
|
],
|
|
8285
|
-
"fileUrlPath": "src/components/
|
|
8421
|
+
"fileUrlPath": "src/components/PydanticClassDeclaration.tsx",
|
|
8286
8422
|
"releaseTag": "Public",
|
|
8287
|
-
"name": "
|
|
8423
|
+
"name": "PydanticModelConfigDictProps",
|
|
8288
8424
|
"preserveMemberOrder": false,
|
|
8289
8425
|
"members": [
|
|
8290
8426
|
{
|
|
8291
8427
|
"kind": "PropertySignature",
|
|
8292
|
-
"canonicalReference": "@alloy-js/python!
|
|
8293
|
-
"docComment": "",
|
|
8428
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#aliasGenerator:member",
|
|
8429
|
+
"docComment": "/**\n * Resolve field aliases from a configured alias generator.\n */\n",
|
|
8294
8430
|
"excerptTokens": [
|
|
8295
8431
|
{
|
|
8296
8432
|
"kind": "Content",
|
|
8297
|
-
"text": "
|
|
8433
|
+
"text": "aliasGenerator?: "
|
|
8298
8434
|
},
|
|
8299
8435
|
{
|
|
8300
|
-
"kind": "
|
|
8301
|
-
"text": "
|
|
8302
|
-
"canonicalReference": "@alloy-js/core!Children:type"
|
|
8436
|
+
"kind": "Content",
|
|
8437
|
+
"text": "string"
|
|
8303
8438
|
},
|
|
8304
8439
|
{
|
|
8305
8440
|
"kind": "Content",
|
|
@@ -8307,29 +8442,915 @@
|
|
|
8307
8442
|
}
|
|
8308
8443
|
],
|
|
8309
8444
|
"isReadonly": false,
|
|
8310
|
-
"isOptional":
|
|
8445
|
+
"isOptional": true,
|
|
8311
8446
|
"releaseTag": "Public",
|
|
8312
|
-
"name": "
|
|
8447
|
+
"name": "aliasGenerator",
|
|
8313
8448
|
"propertyTypeTokenRange": {
|
|
8314
8449
|
"startIndex": 1,
|
|
8315
8450
|
"endIndex": 2
|
|
8316
8451
|
}
|
|
8317
|
-
}
|
|
8318
|
-
],
|
|
8319
|
-
"extendsTokenRanges": []
|
|
8320
|
-
},
|
|
8321
|
-
{
|
|
8322
|
-
"kind": "Function",
|
|
8323
|
-
"canonicalReference": "@alloy-js/python!PythonBlock:function(1)",
|
|
8324
|
-
"docComment": "/**\n * A Python block component that can be used to render a block of Python code.\n *\n * @example\n * ```tsx\n * <PythonBlock opener=\"def my_function()\">\n * <VariableDeclaration name=\"x\" type=\"int\" />\n * <VariableDeclaration name=\"y\" type=\"str\" />\n * </PythonBlock>\n * ```\n *\n * renders to\n * ```py\n * def my_function():\n * x: int = None\n * y: str = None\n * ```\n *\n */\n",
|
|
8325
|
-
"excerptTokens": [
|
|
8452
|
+
},
|
|
8326
8453
|
{
|
|
8327
|
-
"kind": "
|
|
8328
|
-
"
|
|
8454
|
+
"kind": "PropertySignature",
|
|
8455
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#arbitraryTypesAllowed:member",
|
|
8456
|
+
"docComment": "/**\n * Allow non-pydantic/arbitrary Python types in field annotations.\n */\n",
|
|
8457
|
+
"excerptTokens": [
|
|
8458
|
+
{
|
|
8459
|
+
"kind": "Content",
|
|
8460
|
+
"text": "arbitraryTypesAllowed?: "
|
|
8461
|
+
},
|
|
8462
|
+
{
|
|
8463
|
+
"kind": "Content",
|
|
8464
|
+
"text": "boolean"
|
|
8465
|
+
},
|
|
8466
|
+
{
|
|
8467
|
+
"kind": "Content",
|
|
8468
|
+
"text": ";"
|
|
8469
|
+
}
|
|
8470
|
+
],
|
|
8471
|
+
"isReadonly": false,
|
|
8472
|
+
"isOptional": true,
|
|
8473
|
+
"releaseTag": "Public",
|
|
8474
|
+
"name": "arbitraryTypesAllowed",
|
|
8475
|
+
"propertyTypeTokenRange": {
|
|
8476
|
+
"startIndex": 1,
|
|
8477
|
+
"endIndex": 2
|
|
8478
|
+
}
|
|
8329
8479
|
},
|
|
8330
8480
|
{
|
|
8331
|
-
"kind": "
|
|
8332
|
-
"
|
|
8481
|
+
"kind": "PropertySignature",
|
|
8482
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#coerceNumbersToStr:member",
|
|
8483
|
+
"docComment": "/**\n * Coerce numeric input values to strings for `str` fields.\n */\n",
|
|
8484
|
+
"excerptTokens": [
|
|
8485
|
+
{
|
|
8486
|
+
"kind": "Content",
|
|
8487
|
+
"text": "coerceNumbersToStr?: "
|
|
8488
|
+
},
|
|
8489
|
+
{
|
|
8490
|
+
"kind": "Content",
|
|
8491
|
+
"text": "boolean"
|
|
8492
|
+
},
|
|
8493
|
+
{
|
|
8494
|
+
"kind": "Content",
|
|
8495
|
+
"text": ";"
|
|
8496
|
+
}
|
|
8497
|
+
],
|
|
8498
|
+
"isReadonly": false,
|
|
8499
|
+
"isOptional": true,
|
|
8500
|
+
"releaseTag": "Public",
|
|
8501
|
+
"name": "coerceNumbersToStr",
|
|
8502
|
+
"propertyTypeTokenRange": {
|
|
8503
|
+
"startIndex": 1,
|
|
8504
|
+
"endIndex": 2
|
|
8505
|
+
}
|
|
8506
|
+
},
|
|
8507
|
+
{
|
|
8508
|
+
"kind": "PropertySignature",
|
|
8509
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#extra:member",
|
|
8510
|
+
"docComment": "/**\n * Behavior for unknown input keys: allow, forbid, or ignore.\n */\n",
|
|
8511
|
+
"excerptTokens": [
|
|
8512
|
+
{
|
|
8513
|
+
"kind": "Content",
|
|
8514
|
+
"text": "extra?: "
|
|
8515
|
+
},
|
|
8516
|
+
{
|
|
8517
|
+
"kind": "Content",
|
|
8518
|
+
"text": "\"allow\" | \"forbid\" | \"ignore\""
|
|
8519
|
+
},
|
|
8520
|
+
{
|
|
8521
|
+
"kind": "Content",
|
|
8522
|
+
"text": ";"
|
|
8523
|
+
}
|
|
8524
|
+
],
|
|
8525
|
+
"isReadonly": false,
|
|
8526
|
+
"isOptional": true,
|
|
8527
|
+
"releaseTag": "Public",
|
|
8528
|
+
"name": "extra",
|
|
8529
|
+
"propertyTypeTokenRange": {
|
|
8530
|
+
"startIndex": 1,
|
|
8531
|
+
"endIndex": 2
|
|
8532
|
+
}
|
|
8533
|
+
},
|
|
8534
|
+
{
|
|
8535
|
+
"kind": "PropertySignature",
|
|
8536
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#fromAttributes:member",
|
|
8537
|
+
"docComment": "/**\n * Populate models from object attributes (ORM-style) instead of mapping keys.\n */\n",
|
|
8538
|
+
"excerptTokens": [
|
|
8539
|
+
{
|
|
8540
|
+
"kind": "Content",
|
|
8541
|
+
"text": "fromAttributes?: "
|
|
8542
|
+
},
|
|
8543
|
+
{
|
|
8544
|
+
"kind": "Content",
|
|
8545
|
+
"text": "boolean"
|
|
8546
|
+
},
|
|
8547
|
+
{
|
|
8548
|
+
"kind": "Content",
|
|
8549
|
+
"text": ";"
|
|
8550
|
+
}
|
|
8551
|
+
],
|
|
8552
|
+
"isReadonly": false,
|
|
8553
|
+
"isOptional": true,
|
|
8554
|
+
"releaseTag": "Public",
|
|
8555
|
+
"name": "fromAttributes",
|
|
8556
|
+
"propertyTypeTokenRange": {
|
|
8557
|
+
"startIndex": 1,
|
|
8558
|
+
"endIndex": 2
|
|
8559
|
+
}
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"kind": "PropertySignature",
|
|
8563
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#frozen:member",
|
|
8564
|
+
"docComment": "/**\n * Make models immutable (`frozen=True`).\n */\n",
|
|
8565
|
+
"excerptTokens": [
|
|
8566
|
+
{
|
|
8567
|
+
"kind": "Content",
|
|
8568
|
+
"text": "frozen?: "
|
|
8569
|
+
},
|
|
8570
|
+
{
|
|
8571
|
+
"kind": "Content",
|
|
8572
|
+
"text": "boolean"
|
|
8573
|
+
},
|
|
8574
|
+
{
|
|
8575
|
+
"kind": "Content",
|
|
8576
|
+
"text": ";"
|
|
8577
|
+
}
|
|
8578
|
+
],
|
|
8579
|
+
"isReadonly": false,
|
|
8580
|
+
"isOptional": true,
|
|
8581
|
+
"releaseTag": "Public",
|
|
8582
|
+
"name": "frozen",
|
|
8583
|
+
"propertyTypeTokenRange": {
|
|
8584
|
+
"startIndex": 1,
|
|
8585
|
+
"endIndex": 2
|
|
8586
|
+
}
|
|
8587
|
+
},
|
|
8588
|
+
{
|
|
8589
|
+
"kind": "PropertySignature",
|
|
8590
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#hideInputInErrors:member",
|
|
8591
|
+
"docComment": "/**\n * Hide input values in validation error messages.\n */\n",
|
|
8592
|
+
"excerptTokens": [
|
|
8593
|
+
{
|
|
8594
|
+
"kind": "Content",
|
|
8595
|
+
"text": "hideInputInErrors?: "
|
|
8596
|
+
},
|
|
8597
|
+
{
|
|
8598
|
+
"kind": "Content",
|
|
8599
|
+
"text": "boolean"
|
|
8600
|
+
},
|
|
8601
|
+
{
|
|
8602
|
+
"kind": "Content",
|
|
8603
|
+
"text": ";"
|
|
8604
|
+
}
|
|
8605
|
+
],
|
|
8606
|
+
"isReadonly": false,
|
|
8607
|
+
"isOptional": true,
|
|
8608
|
+
"releaseTag": "Public",
|
|
8609
|
+
"name": "hideInputInErrors",
|
|
8610
|
+
"propertyTypeTokenRange": {
|
|
8611
|
+
"startIndex": 1,
|
|
8612
|
+
"endIndex": 2
|
|
8613
|
+
}
|
|
8614
|
+
},
|
|
8615
|
+
{
|
|
8616
|
+
"kind": "PropertySignature",
|
|
8617
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#jsonSchemaExtra:member",
|
|
8618
|
+
"docComment": "/**\n * Include JSON schema extras via a plain JSON-serializable object.\n */\n",
|
|
8619
|
+
"excerptTokens": [
|
|
8620
|
+
{
|
|
8621
|
+
"kind": "Content",
|
|
8622
|
+
"text": "jsonSchemaExtra?: "
|
|
8623
|
+
},
|
|
8624
|
+
{
|
|
8625
|
+
"kind": "Reference",
|
|
8626
|
+
"text": "Record",
|
|
8627
|
+
"canonicalReference": "!Record:type"
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
"kind": "Content",
|
|
8631
|
+
"text": "<string, unknown>"
|
|
8632
|
+
},
|
|
8633
|
+
{
|
|
8634
|
+
"kind": "Content",
|
|
8635
|
+
"text": ";"
|
|
8636
|
+
}
|
|
8637
|
+
],
|
|
8638
|
+
"isReadonly": false,
|
|
8639
|
+
"isOptional": true,
|
|
8640
|
+
"releaseTag": "Public",
|
|
8641
|
+
"name": "jsonSchemaExtra",
|
|
8642
|
+
"propertyTypeTokenRange": {
|
|
8643
|
+
"startIndex": 1,
|
|
8644
|
+
"endIndex": 3
|
|
8645
|
+
}
|
|
8646
|
+
},
|
|
8647
|
+
{
|
|
8648
|
+
"kind": "PropertySignature",
|
|
8649
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#locByAlias:member",
|
|
8650
|
+
"docComment": "/**\n * Use aliases in error locations instead of field names.\n */\n",
|
|
8651
|
+
"excerptTokens": [
|
|
8652
|
+
{
|
|
8653
|
+
"kind": "Content",
|
|
8654
|
+
"text": "locByAlias?: "
|
|
8655
|
+
},
|
|
8656
|
+
{
|
|
8657
|
+
"kind": "Content",
|
|
8658
|
+
"text": "boolean"
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
"kind": "Content",
|
|
8662
|
+
"text": ";"
|
|
8663
|
+
}
|
|
8664
|
+
],
|
|
8665
|
+
"isReadonly": false,
|
|
8666
|
+
"isOptional": true,
|
|
8667
|
+
"releaseTag": "Public",
|
|
8668
|
+
"name": "locByAlias",
|
|
8669
|
+
"propertyTypeTokenRange": {
|
|
8670
|
+
"startIndex": 1,
|
|
8671
|
+
"endIndex": 2
|
|
8672
|
+
}
|
|
8673
|
+
},
|
|
8674
|
+
{
|
|
8675
|
+
"kind": "PropertySignature",
|
|
8676
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#populateByName:member",
|
|
8677
|
+
"docComment": "/**\n * Allow population by field name even when aliases are defined.\n */\n",
|
|
8678
|
+
"excerptTokens": [
|
|
8679
|
+
{
|
|
8680
|
+
"kind": "Content",
|
|
8681
|
+
"text": "populateByName?: "
|
|
8682
|
+
},
|
|
8683
|
+
{
|
|
8684
|
+
"kind": "Content",
|
|
8685
|
+
"text": "boolean"
|
|
8686
|
+
},
|
|
8687
|
+
{
|
|
8688
|
+
"kind": "Content",
|
|
8689
|
+
"text": ";"
|
|
8690
|
+
}
|
|
8691
|
+
],
|
|
8692
|
+
"isReadonly": false,
|
|
8693
|
+
"isOptional": true,
|
|
8694
|
+
"releaseTag": "Public",
|
|
8695
|
+
"name": "populateByName",
|
|
8696
|
+
"propertyTypeTokenRange": {
|
|
8697
|
+
"startIndex": 1,
|
|
8698
|
+
"endIndex": 2
|
|
8699
|
+
}
|
|
8700
|
+
},
|
|
8701
|
+
{
|
|
8702
|
+
"kind": "PropertySignature",
|
|
8703
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#revalidateInstances:member",
|
|
8704
|
+
"docComment": "/**\n * Re-validate model/dataclass instances on assignment boundaries.\n */\n",
|
|
8705
|
+
"excerptTokens": [
|
|
8706
|
+
{
|
|
8707
|
+
"kind": "Content",
|
|
8708
|
+
"text": "revalidateInstances?: "
|
|
8709
|
+
},
|
|
8710
|
+
{
|
|
8711
|
+
"kind": "Content",
|
|
8712
|
+
"text": "\"always\" | \"never\" | \"subclass-instances\""
|
|
8713
|
+
},
|
|
8714
|
+
{
|
|
8715
|
+
"kind": "Content",
|
|
8716
|
+
"text": ";"
|
|
8717
|
+
}
|
|
8718
|
+
],
|
|
8719
|
+
"isReadonly": false,
|
|
8720
|
+
"isOptional": true,
|
|
8721
|
+
"releaseTag": "Public",
|
|
8722
|
+
"name": "revalidateInstances",
|
|
8723
|
+
"propertyTypeTokenRange": {
|
|
8724
|
+
"startIndex": 1,
|
|
8725
|
+
"endIndex": 2
|
|
8726
|
+
}
|
|
8727
|
+
},
|
|
8728
|
+
{
|
|
8729
|
+
"kind": "PropertySignature",
|
|
8730
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#serJsonBytes:member",
|
|
8731
|
+
"docComment": "/**\n * JSON serialization format for bytes values.\n */\n",
|
|
8732
|
+
"excerptTokens": [
|
|
8733
|
+
{
|
|
8734
|
+
"kind": "Content",
|
|
8735
|
+
"text": "serJsonBytes?: "
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
"kind": "Content",
|
|
8739
|
+
"text": "\"utf8\" | \"base64\" | \"hex\""
|
|
8740
|
+
},
|
|
8741
|
+
{
|
|
8742
|
+
"kind": "Content",
|
|
8743
|
+
"text": ";"
|
|
8744
|
+
}
|
|
8745
|
+
],
|
|
8746
|
+
"isReadonly": false,
|
|
8747
|
+
"isOptional": true,
|
|
8748
|
+
"releaseTag": "Public",
|
|
8749
|
+
"name": "serJsonBytes",
|
|
8750
|
+
"propertyTypeTokenRange": {
|
|
8751
|
+
"startIndex": 1,
|
|
8752
|
+
"endIndex": 2
|
|
8753
|
+
}
|
|
8754
|
+
},
|
|
8755
|
+
{
|
|
8756
|
+
"kind": "PropertySignature",
|
|
8757
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#serJsonInfNan:member",
|
|
8758
|
+
"docComment": "/**\n * JSON serialization behavior for Infinity/NaN values.\n */\n",
|
|
8759
|
+
"excerptTokens": [
|
|
8760
|
+
{
|
|
8761
|
+
"kind": "Content",
|
|
8762
|
+
"text": "serJsonInfNan?: "
|
|
8763
|
+
},
|
|
8764
|
+
{
|
|
8765
|
+
"kind": "Content",
|
|
8766
|
+
"text": "\"null\" | \"constants\" | \"strings\""
|
|
8767
|
+
},
|
|
8768
|
+
{
|
|
8769
|
+
"kind": "Content",
|
|
8770
|
+
"text": ";"
|
|
8771
|
+
}
|
|
8772
|
+
],
|
|
8773
|
+
"isReadonly": false,
|
|
8774
|
+
"isOptional": true,
|
|
8775
|
+
"releaseTag": "Public",
|
|
8776
|
+
"name": "serJsonInfNan",
|
|
8777
|
+
"propertyTypeTokenRange": {
|
|
8778
|
+
"startIndex": 1,
|
|
8779
|
+
"endIndex": 2
|
|
8780
|
+
}
|
|
8781
|
+
},
|
|
8782
|
+
{
|
|
8783
|
+
"kind": "PropertySignature",
|
|
8784
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strict:member",
|
|
8785
|
+
"docComment": "/**\n * Enable strict validation globally for the model.\n */\n",
|
|
8786
|
+
"excerptTokens": [
|
|
8787
|
+
{
|
|
8788
|
+
"kind": "Content",
|
|
8789
|
+
"text": "strict?: "
|
|
8790
|
+
},
|
|
8791
|
+
{
|
|
8792
|
+
"kind": "Content",
|
|
8793
|
+
"text": "boolean"
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
"kind": "Content",
|
|
8797
|
+
"text": ";"
|
|
8798
|
+
}
|
|
8799
|
+
],
|
|
8800
|
+
"isReadonly": false,
|
|
8801
|
+
"isOptional": true,
|
|
8802
|
+
"releaseTag": "Public",
|
|
8803
|
+
"name": "strict",
|
|
8804
|
+
"propertyTypeTokenRange": {
|
|
8805
|
+
"startIndex": 1,
|
|
8806
|
+
"endIndex": 2
|
|
8807
|
+
}
|
|
8808
|
+
},
|
|
8809
|
+
{
|
|
8810
|
+
"kind": "PropertySignature",
|
|
8811
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strMaxLength:member",
|
|
8812
|
+
"docComment": "/**\n * Upper-bound for constrained string lengths at model level.\n */\n",
|
|
8813
|
+
"excerptTokens": [
|
|
8814
|
+
{
|
|
8815
|
+
"kind": "Content",
|
|
8816
|
+
"text": "strMaxLength?: "
|
|
8817
|
+
},
|
|
8818
|
+
{
|
|
8819
|
+
"kind": "Content",
|
|
8820
|
+
"text": "number"
|
|
8821
|
+
},
|
|
8822
|
+
{
|
|
8823
|
+
"kind": "Content",
|
|
8824
|
+
"text": ";"
|
|
8825
|
+
}
|
|
8826
|
+
],
|
|
8827
|
+
"isReadonly": false,
|
|
8828
|
+
"isOptional": true,
|
|
8829
|
+
"releaseTag": "Public",
|
|
8830
|
+
"name": "strMaxLength",
|
|
8831
|
+
"propertyTypeTokenRange": {
|
|
8832
|
+
"startIndex": 1,
|
|
8833
|
+
"endIndex": 2
|
|
8834
|
+
}
|
|
8835
|
+
},
|
|
8836
|
+
{
|
|
8837
|
+
"kind": "PropertySignature",
|
|
8838
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strMinLength:member",
|
|
8839
|
+
"docComment": "/**\n * Lower-bound for constrained string lengths at model level.\n */\n",
|
|
8840
|
+
"excerptTokens": [
|
|
8841
|
+
{
|
|
8842
|
+
"kind": "Content",
|
|
8843
|
+
"text": "strMinLength?: "
|
|
8844
|
+
},
|
|
8845
|
+
{
|
|
8846
|
+
"kind": "Content",
|
|
8847
|
+
"text": "number"
|
|
8848
|
+
},
|
|
8849
|
+
{
|
|
8850
|
+
"kind": "Content",
|
|
8851
|
+
"text": ";"
|
|
8852
|
+
}
|
|
8853
|
+
],
|
|
8854
|
+
"isReadonly": false,
|
|
8855
|
+
"isOptional": true,
|
|
8856
|
+
"releaseTag": "Public",
|
|
8857
|
+
"name": "strMinLength",
|
|
8858
|
+
"propertyTypeTokenRange": {
|
|
8859
|
+
"startIndex": 1,
|
|
8860
|
+
"endIndex": 2
|
|
8861
|
+
}
|
|
8862
|
+
},
|
|
8863
|
+
{
|
|
8864
|
+
"kind": "PropertySignature",
|
|
8865
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strStripWhitespace:member",
|
|
8866
|
+
"docComment": "/**\n * Strip leading/trailing whitespace from all `str` fields.\n */\n",
|
|
8867
|
+
"excerptTokens": [
|
|
8868
|
+
{
|
|
8869
|
+
"kind": "Content",
|
|
8870
|
+
"text": "strStripWhitespace?: "
|
|
8871
|
+
},
|
|
8872
|
+
{
|
|
8873
|
+
"kind": "Content",
|
|
8874
|
+
"text": "boolean"
|
|
8875
|
+
},
|
|
8876
|
+
{
|
|
8877
|
+
"kind": "Content",
|
|
8878
|
+
"text": ";"
|
|
8879
|
+
}
|
|
8880
|
+
],
|
|
8881
|
+
"isReadonly": false,
|
|
8882
|
+
"isOptional": true,
|
|
8883
|
+
"releaseTag": "Public",
|
|
8884
|
+
"name": "strStripWhitespace",
|
|
8885
|
+
"propertyTypeTokenRange": {
|
|
8886
|
+
"startIndex": 1,
|
|
8887
|
+
"endIndex": 2
|
|
8888
|
+
}
|
|
8889
|
+
},
|
|
8890
|
+
{
|
|
8891
|
+
"kind": "PropertySignature",
|
|
8892
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strToLower:member",
|
|
8893
|
+
"docComment": "/**\n * Convert all `str` values to lowercase.\n */\n",
|
|
8894
|
+
"excerptTokens": [
|
|
8895
|
+
{
|
|
8896
|
+
"kind": "Content",
|
|
8897
|
+
"text": "strToLower?: "
|
|
8898
|
+
},
|
|
8899
|
+
{
|
|
8900
|
+
"kind": "Content",
|
|
8901
|
+
"text": "boolean"
|
|
8902
|
+
},
|
|
8903
|
+
{
|
|
8904
|
+
"kind": "Content",
|
|
8905
|
+
"text": ";"
|
|
8906
|
+
}
|
|
8907
|
+
],
|
|
8908
|
+
"isReadonly": false,
|
|
8909
|
+
"isOptional": true,
|
|
8910
|
+
"releaseTag": "Public",
|
|
8911
|
+
"name": "strToLower",
|
|
8912
|
+
"propertyTypeTokenRange": {
|
|
8913
|
+
"startIndex": 1,
|
|
8914
|
+
"endIndex": 2
|
|
8915
|
+
}
|
|
8916
|
+
},
|
|
8917
|
+
{
|
|
8918
|
+
"kind": "PropertySignature",
|
|
8919
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#strToUpper:member",
|
|
8920
|
+
"docComment": "/**\n * Convert all `str` values to uppercase.\n */\n",
|
|
8921
|
+
"excerptTokens": [
|
|
8922
|
+
{
|
|
8923
|
+
"kind": "Content",
|
|
8924
|
+
"text": "strToUpper?: "
|
|
8925
|
+
},
|
|
8926
|
+
{
|
|
8927
|
+
"kind": "Content",
|
|
8928
|
+
"text": "boolean"
|
|
8929
|
+
},
|
|
8930
|
+
{
|
|
8931
|
+
"kind": "Content",
|
|
8932
|
+
"text": ";"
|
|
8933
|
+
}
|
|
8934
|
+
],
|
|
8935
|
+
"isReadonly": false,
|
|
8936
|
+
"isOptional": true,
|
|
8937
|
+
"releaseTag": "Public",
|
|
8938
|
+
"name": "strToUpper",
|
|
8939
|
+
"propertyTypeTokenRange": {
|
|
8940
|
+
"startIndex": 1,
|
|
8941
|
+
"endIndex": 2
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
{
|
|
8945
|
+
"kind": "PropertySignature",
|
|
8946
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#useEnumValues:member",
|
|
8947
|
+
"docComment": "/**\n * Use enum `.value` instead of enum instances during serialization.\n */\n",
|
|
8948
|
+
"excerptTokens": [
|
|
8949
|
+
{
|
|
8950
|
+
"kind": "Content",
|
|
8951
|
+
"text": "useEnumValues?: "
|
|
8952
|
+
},
|
|
8953
|
+
{
|
|
8954
|
+
"kind": "Content",
|
|
8955
|
+
"text": "boolean"
|
|
8956
|
+
},
|
|
8957
|
+
{
|
|
8958
|
+
"kind": "Content",
|
|
8959
|
+
"text": ";"
|
|
8960
|
+
}
|
|
8961
|
+
],
|
|
8962
|
+
"isReadonly": false,
|
|
8963
|
+
"isOptional": true,
|
|
8964
|
+
"releaseTag": "Public",
|
|
8965
|
+
"name": "useEnumValues",
|
|
8966
|
+
"propertyTypeTokenRange": {
|
|
8967
|
+
"startIndex": 1,
|
|
8968
|
+
"endIndex": 2
|
|
8969
|
+
}
|
|
8970
|
+
},
|
|
8971
|
+
{
|
|
8972
|
+
"kind": "PropertySignature",
|
|
8973
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#validateAssignment:member",
|
|
8974
|
+
"docComment": "/**\n * Re-validate when attributes are assigned after model creation.\n */\n",
|
|
8975
|
+
"excerptTokens": [
|
|
8976
|
+
{
|
|
8977
|
+
"kind": "Content",
|
|
8978
|
+
"text": "validateAssignment?: "
|
|
8979
|
+
},
|
|
8980
|
+
{
|
|
8981
|
+
"kind": "Content",
|
|
8982
|
+
"text": "boolean"
|
|
8983
|
+
},
|
|
8984
|
+
{
|
|
8985
|
+
"kind": "Content",
|
|
8986
|
+
"text": ";"
|
|
8987
|
+
}
|
|
8988
|
+
],
|
|
8989
|
+
"isReadonly": false,
|
|
8990
|
+
"isOptional": true,
|
|
8991
|
+
"releaseTag": "Public",
|
|
8992
|
+
"name": "validateAssignment",
|
|
8993
|
+
"propertyTypeTokenRange": {
|
|
8994
|
+
"startIndex": 1,
|
|
8995
|
+
"endIndex": 2
|
|
8996
|
+
}
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
"kind": "PropertySignature",
|
|
9000
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#validateDefault:member",
|
|
9001
|
+
"docComment": "/**\n * Validate default values in addition to provided input values.\n */\n",
|
|
9002
|
+
"excerptTokens": [
|
|
9003
|
+
{
|
|
9004
|
+
"kind": "Content",
|
|
9005
|
+
"text": "validateDefault?: "
|
|
9006
|
+
},
|
|
9007
|
+
{
|
|
9008
|
+
"kind": "Content",
|
|
9009
|
+
"text": "boolean"
|
|
9010
|
+
},
|
|
9011
|
+
{
|
|
9012
|
+
"kind": "Content",
|
|
9013
|
+
"text": ";"
|
|
9014
|
+
}
|
|
9015
|
+
],
|
|
9016
|
+
"isReadonly": false,
|
|
9017
|
+
"isOptional": true,
|
|
9018
|
+
"releaseTag": "Public",
|
|
9019
|
+
"name": "validateDefault",
|
|
9020
|
+
"propertyTypeTokenRange": {
|
|
9021
|
+
"startIndex": 1,
|
|
9022
|
+
"endIndex": 2
|
|
9023
|
+
}
|
|
9024
|
+
},
|
|
9025
|
+
{
|
|
9026
|
+
"kind": "PropertySignature",
|
|
9027
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#validateReturn:member",
|
|
9028
|
+
"docComment": "/**\n * Validate return values for call validators.\n */\n",
|
|
9029
|
+
"excerptTokens": [
|
|
9030
|
+
{
|
|
9031
|
+
"kind": "Content",
|
|
9032
|
+
"text": "validateReturn?: "
|
|
9033
|
+
},
|
|
9034
|
+
{
|
|
9035
|
+
"kind": "Content",
|
|
9036
|
+
"text": "boolean"
|
|
9037
|
+
},
|
|
9038
|
+
{
|
|
9039
|
+
"kind": "Content",
|
|
9040
|
+
"text": ";"
|
|
9041
|
+
}
|
|
9042
|
+
],
|
|
9043
|
+
"isReadonly": false,
|
|
9044
|
+
"isOptional": true,
|
|
9045
|
+
"releaseTag": "Public",
|
|
9046
|
+
"name": "validateReturn",
|
|
9047
|
+
"propertyTypeTokenRange": {
|
|
9048
|
+
"startIndex": 1,
|
|
9049
|
+
"endIndex": 2
|
|
9050
|
+
}
|
|
9051
|
+
},
|
|
9052
|
+
{
|
|
9053
|
+
"kind": "PropertySignature",
|
|
9054
|
+
"canonicalReference": "@alloy-js/python!PydanticModelConfigDictProps#valJsonBytes:member",
|
|
9055
|
+
"docComment": "/**\n * JSON validation format for bytes values.\n */\n",
|
|
9056
|
+
"excerptTokens": [
|
|
9057
|
+
{
|
|
9058
|
+
"kind": "Content",
|
|
9059
|
+
"text": "valJsonBytes?: "
|
|
9060
|
+
},
|
|
9061
|
+
{
|
|
9062
|
+
"kind": "Content",
|
|
9063
|
+
"text": "\"utf8\" | \"base64\" | \"hex\""
|
|
9064
|
+
},
|
|
9065
|
+
{
|
|
9066
|
+
"kind": "Content",
|
|
9067
|
+
"text": ";"
|
|
9068
|
+
}
|
|
9069
|
+
],
|
|
9070
|
+
"isReadonly": false,
|
|
9071
|
+
"isOptional": true,
|
|
9072
|
+
"releaseTag": "Public",
|
|
9073
|
+
"name": "valJsonBytes",
|
|
9074
|
+
"propertyTypeTokenRange": {
|
|
9075
|
+
"startIndex": 1,
|
|
9076
|
+
"endIndex": 2
|
|
9077
|
+
}
|
|
9078
|
+
}
|
|
9079
|
+
],
|
|
9080
|
+
"extendsTokenRanges": []
|
|
9081
|
+
},
|
|
9082
|
+
{
|
|
9083
|
+
"kind": "Variable",
|
|
9084
|
+
"canonicalReference": "@alloy-js/python!pydanticModule:var",
|
|
9085
|
+
"docComment": "",
|
|
9086
|
+
"excerptTokens": [
|
|
9087
|
+
{
|
|
9088
|
+
"kind": "Content",
|
|
9089
|
+
"text": "pydanticModule: "
|
|
9090
|
+
},
|
|
9091
|
+
{
|
|
9092
|
+
"kind": "Content",
|
|
9093
|
+
"text": "import(\"../create-module.js\")."
|
|
9094
|
+
},
|
|
9095
|
+
{
|
|
9096
|
+
"kind": "Reference",
|
|
9097
|
+
"text": "ModuleRefkeys",
|
|
9098
|
+
"canonicalReference": "@alloy-js/python!ModuleRefkeys:type"
|
|
9099
|
+
},
|
|
9100
|
+
{
|
|
9101
|
+
"kind": "Content",
|
|
9102
|
+
"text": "<{\n readonly \".\": [\"AfterValidator\", \"AliasChoices\", \"AliasGenerator\", \"AliasPath\", \"AllowInfNan\", \"AmqpDsn\", \"AnyHttpUrl\", \"AnyUrl\", \"AnyWebsocketUrl\", \"AwareDatetime\", \"Base64Bytes\", \"Base64Encoder\", \"Base64Str\", \"Base64UrlBytes\", \"Base64UrlStr\", \"BaseModel\", \"BeforeValidator\", \"ByteSize\", \"ClickHouseDsn\", \"CockroachDsn\", \"ConfigDict\", \"DirectoryPath\", \"Discriminator\", \"EmailStr\", \"EncodedBytes\", \"EncodedStr\", \"EncoderProtocol\", \"Extra\", \"FailFast\", \"Field\", \"FieldSerializationInfo\", \"FilePath\", \"FileUrl\", \"FiniteFloat\", \"FtpUrl\", \"FutureDate\", \"FutureDatetime\", \"GetCoreSchemaHandler\", \"GetJsonSchemaHandler\", \"GetPydanticSchema\", \"HttpUrl\", \"IPvAnyAddress\", \"IPvAnyInterface\", \"IPvAnyNetwork\", \"ImportString\", \"InstanceOf\", \"Json\", \"JsonValue\", \"KafkaDsn\", \"MariaDBDsn\", \"ModelWrapValidatorHandler\", \"MongoDsn\", \"MySQLDsn\", \"NaiveDatetime\", \"NameEmail\", \"NatsDsn\", \"NegativeFloat\", \"NegativeInt\", \"NewPath\", \"NonNegativeFloat\", \"NonNegativeInt\", \"NonPositiveFloat\", \"NonPositiveInt\", \"OnErrorOmit\", \"PastDate\", \"PastDatetime\", \"PaymentCardNumber\", \"PlainSerializer\", \"PlainValidator\", \"PositiveFloat\", \"PositiveInt\", \"PostgresDsn\", \"PrivateAttr\", \"PydanticDeprecatedSince20\", \"PydanticDeprecatedSince210\", \"PydanticDeprecatedSince211\", \"PydanticDeprecatedSince212\", \"PydanticDeprecatedSince26\", \"PydanticDeprecatedSince29\", \"PydanticDeprecationWarning\", \"PydanticErrorCodes\", \"PydanticExperimentalWarning\", \"PydanticForbiddenQualifier\", \"PydanticImportError\", \"PydanticInvalidForJsonSchema\", \"PydanticSchemaGenerationError\", \"PydanticUndefinedAnnotation\", \"PydanticUserError\", \"RedisDsn\", \"RootModel\", \"Secret\", \"SecretBytes\", \"SecretStr\", \"SerializationInfo\", \"SerializeAsAny\", \"SerializerFunctionWrapHandler\", \"SkipValidation\", \"SnowflakeDsn\", \"SocketPath\", \"Strict\", \"StrictBool\", \"StrictBytes\", \"StrictFloat\", \"StrictInt\", \"StrictStr\", \"StringConstraints\", \"Tag\", \"TypeAdapter\", \"UUID1\", \"UUID3\", \"UUID4\", \"UUID5\", \"UUID6\", \"UUID7\", \"UUID8\", \"UrlConstraints\", \"VERSION\", \"ValidateAs\", \"ValidationError\", \"ValidationInfo\", \"ValidatorFunctionWrapHandler\", \"WebsocketUrl\", \"WithJsonSchema\", \"WrapSerializer\", \"WrapValidator\", \"__version__\", \"computed_field\", \"conbytes\", \"condate\", \"condecimal\", \"confloat\", \"confrozenset\", \"conint\", \"conlist\", \"conset\", \"constr\", \"create_model\", \"dataclasses\", \"field_serializer\", \"field_validator\", \"model_serializer\", \"model_validator\", \"validate_call\", \"validate_email\", \"with_config\"];\n readonly alias_generators: [\"to_camel\", \"to_pascal\", \"to_snake\"];\n readonly aliases: [\"AliasChoices\", \"AliasGenerator\", \"AliasPath\"];\n readonly annotated_handlers: [\"GetCoreSchemaHandler\", \"GetJsonSchemaHandler\"];\n readonly color: [\"Any\", \"COLORS_BY_NAME\", \"COLORS_BY_VALUE\", \"Callable\", \"Color\", \"ColorTuple\", \"ColorType\", \"CoreSchema\", \"HslColorTuple\", \"JsonSchemaValue\", \"Optional\", \"PydanticCustomError\", \"PydanticDeprecatedSince20\", \"RGBA\", \"Union\", \"cast\", \"core_schema\", \"deprecated\", \"float_to_255\", \"hls_to_rgb\", \"ints_to_rgba\", \"math\", \"parse_color_value\", \"parse_float_alpha\", \"parse_hsl\", \"parse_str\", \"parse_tuple\", \"r_hex_long\", \"r_hex_short\", \"r_hsl\", \"r_hsl_v4_style\", \"r_rgb\", \"r_rgb_v4_style\", \"rads\", \"re\", \"repeat_colors\", \"rgb_to_hls\"];\n readonly config: [\"ConfigDict\", \"with_config\"];\n readonly dataclasses: [\"dataclass\", \"rebuild_dataclass\"];\n readonly errors: [\"PydanticErrorCodes\", \"PydanticForbiddenQualifier\", \"PydanticImportError\", \"PydanticInvalidForJsonSchema\", \"PydanticSchemaGenerationError\", \"PydanticUndefinedAnnotation\", \"PydanticUserError\"];\n readonly fields: [\"Field\", \"FieldInfo\", \"PrivateAttr\", \"computed_field\"];\n readonly functional_serializers: [\"Annotated\", \"Any\", \"AnyType\", \"Callable\", \"GetCoreSchemaHandler\", \"Literal\", \"PlainSerializer\", \"PydanticUndefined\", \"PydanticUndefinedAnnotation\", \"PydanticUserError\", \"SerializationInfo\", \"SerializeAsAny\", \"SerializerFunctionWrapHandler\", \"TYPE_CHECKING\", \"TypeAlias\", \"TypeVar\", \"WhenUsed\", \"WrapSerializer\", \"annotations\", \"core_schema\", \"dataclasses\", \"field_serializer\", \"model_serializer\", \"overload\", \"partial\", \"partialmethod\"];\n readonly functional_validators: [\"AfterValidator\", \"Annotated\", \"Any\", \"AnyType\", \"ArbitraryTypeWarning\", \"BeforeValidator\", \"Callable\", \"FieldValidatorModes\", \"FreeModelBeforeValidator\", \"FreeModelBeforeValidatorWithoutInfo\", \"GetCoreSchemaHandler\", \"InstanceOf\", \"Literal\", \"ModelAfterValidator\", \"ModelAfterValidatorWithoutInfo\", \"ModelBeforeValidator\", \"ModelBeforeValidatorWithoutInfo\", \"ModelWrapValidator\", \"ModelWrapValidatorHandler\", \"ModelWrapValidatorWithoutInfo\", \"PlainValidator\", \"Protocol\", \"PydanticDeprecatedSince212\", \"PydanticUndefined\", \"PydanticUserError\", \"Self\", \"SkipValidation\", \"TYPE_CHECKING\", \"TypeAlias\", \"TypeVar\", \"Union\", \"ValidateAs\", \"WrapValidator\", \"cast\", \"core_schema\", \"dataclasses\", \"field_validator\", \"model_validator\", \"overload\", \"partialmethod\", \"sys\", \"version_short\", \"warnings\"];\n readonly json_schema: [\"Annotated\", \"Any\", \"AnyType\", \"Callable\", \"ComputedField\", \"CoreModeRef\", \"CoreRef\", \"CoreSchema\", \"CoreSchemaOrFieldType\", \"Counter\", \"DEFAULT_REF_TEMPLATE\", \"DefsRef\", \"Enum\", \"Examples\", \"GenerateJsonSchema\", \"GetJsonSchemaHandler\", \"Hashable\", \"Iterable\", \"JsonDict\", \"JsonRef\", \"JsonSchemaKeyT\", \"JsonSchemaMode\", \"JsonSchemaValue\", \"JsonSchemaWarningKind\", \"JsonValue\", \"Literal\", \"MISSING\", \"NewType\", \"NoDefault\", \"Pattern\", \"PydanticDeprecatedSince26\", \"PydanticDeprecatedSince29\", \"PydanticInvalidForJsonSchema\", \"PydanticJsonSchemaWarning\", \"PydanticOmit\", \"PydanticSchemaGenerationError\", \"PydanticUserError\", \"Sequence\", \"SkipJsonSchema\", \"TYPE_CHECKING\", \"TypeAlias\", \"TypeVar\", \"Union\", \"WithJsonSchema\", \"assert_never\", \"cast\", \"collections\", \"core_schema\", \"dataclasses\", \"deepcopy\", \"defaultdict\", \"deprecated\", \"final\", \"get_literal_values\", \"inspect\", \"math\", \"model_json_schema\", \"models_json_schema\", \"os\", \"overload\", \"pydantic_core\", \"re\", \"to_jsonable_python\", \"warnings\"];\n readonly main: [\"BaseModel\", \"create_model\"];\n readonly networks: [\"AmqpDsn\", \"AnyHttpUrl\", \"AnyUrl\", \"AnyWebsocketUrl\", \"ClickHouseDsn\", \"CockroachDsn\", \"EmailStr\", \"FileUrl\", \"FtpUrl\", \"HttpUrl\", \"IPvAnyAddress\", \"IPvAnyInterface\", \"IPvAnyNetwork\", \"KafkaDsn\", \"MariaDBDsn\", \"MongoDsn\", \"MySQLDsn\", \"NameEmail\", \"NatsDsn\", \"PostgresDsn\", \"RedisDsn\", \"SnowflakeDsn\", \"UrlConstraints\", \"WebsocketUrl\", \"validate_email\"];\n readonly plugin: [\"BaseValidateHandlerProtocol\", \"NewSchemaReturns\", \"PydanticPluginProtocol\", \"SchemaKind\", \"SchemaTypePath\", \"ValidateJsonHandlerProtocol\", \"ValidatePythonHandlerProtocol\", \"ValidateStringsHandlerProtocol\"];\n readonly root_model: [\"RootModel\"];\n readonly type_adapter: [\"Any\", \"BaseModel\", \"Callable\", \"ConfigDict\", \"CoreSchema\", \"DEFAULT_REF_TEMPLATE\", \"ExtraValues\", \"FrameType\", \"GenerateJsonSchema\", \"Generic\", \"IncEx\", \"Iterable\", \"JsonSchemaKeyT\", \"JsonSchemaMode\", \"JsonSchemaValue\", \"Literal\", \"P\", \"ParamSpec\", \"PluggableSchemaValidator\", \"PydanticUndefinedAnnotation\", \"PydanticUserError\", \"R\", \"SchemaSerializer\", \"SchemaValidator\", \"Some\", \"T\", \"TypeAdapter\", \"TypeAdapterT\", \"TypeVar\", \"cast\", \"create_schema_validator\", \"final\", \"is_dataclass\", \"is_typeddict\", \"overload\", \"sys\", \"types\"];\n readonly types: [\"AllowInfNan\", \"AwareDatetime\", \"Base64Bytes\", \"Base64Encoder\", \"Base64Str\", \"Base64UrlBytes\", \"Base64UrlStr\", \"ByteSize\", \"DirectoryPath\", \"Discriminator\", \"EncodedBytes\", \"EncodedStr\", \"EncoderProtocol\", \"FailFast\", \"FilePath\", \"FiniteFloat\", \"FutureDate\", \"FutureDatetime\", \"GetPydanticSchema\", \"ImportString\", \"Json\", \"JsonValue\", \"NaiveDatetime\", \"NegativeFloat\", \"NegativeInt\", \"NewPath\", \"NonNegativeFloat\", \"NonNegativeInt\", \"NonPositiveFloat\", \"NonPositiveInt\", \"OnErrorOmit\", \"PastDate\", \"PastDatetime\", \"PaymentCardNumber\", \"PositiveFloat\", \"PositiveInt\", \"Secret\", \"SecretBytes\", \"SecretStr\", \"SocketPath\", \"Strict\", \"StrictBool\", \"StrictBytes\", \"StrictFloat\", \"StrictInt\", \"StrictStr\", \"StringConstraints\", \"Tag\", \"UUID1\", \"UUID3\", \"UUID4\", \"UUID5\", \"UUID6\", \"UUID7\", \"UUID8\", \"conbytes\", \"condate\", \"condecimal\", \"confloat\", \"confrozenset\", \"conint\", \"conlist\", \"conset\", \"constr\"];\n readonly validate_call_decorator: [\"validate_call\"];\n readonly version: [\"VERSION\", \"version_info\"];\n readonly warnings: [\"ArbitraryTypeWarning\", \"PydanticDeprecatedSince20\", \"PydanticDeprecatedSince210\", \"PydanticDeprecatedSince211\", \"PydanticDeprecatedSince212\", \"PydanticDeprecatedSince26\", \"PydanticDeprecatedSince29\", \"PydanticDeprecationWarning\", \"PydanticExperimentalWarning\", \"TypedDictExtraConfigWarning\", \"UnsupportedFieldAttributeWarning\"];\n}> & "
|
|
9103
|
+
},
|
|
9104
|
+
{
|
|
9105
|
+
"kind": "Reference",
|
|
9106
|
+
"text": "SymbolCreator",
|
|
9107
|
+
"canonicalReference": "@alloy-js/core!SymbolCreator:interface"
|
|
9108
|
+
}
|
|
9109
|
+
],
|
|
9110
|
+
"fileUrlPath": "src/builtins/python.ts",
|
|
9111
|
+
"isReadonly": true,
|
|
9112
|
+
"releaseTag": "Public",
|
|
9113
|
+
"name": "pydanticModule",
|
|
9114
|
+
"variableTypeTokenRange": {
|
|
9115
|
+
"startIndex": 1,
|
|
9116
|
+
"endIndex": 5
|
|
9117
|
+
}
|
|
9118
|
+
},
|
|
9119
|
+
{
|
|
9120
|
+
"kind": "Variable",
|
|
9121
|
+
"canonicalReference": "@alloy-js/python!pydanticSettingsModule:var",
|
|
9122
|
+
"docComment": "",
|
|
9123
|
+
"excerptTokens": [
|
|
9124
|
+
{
|
|
9125
|
+
"kind": "Content",
|
|
9126
|
+
"text": "pydanticSettingsModule: "
|
|
9127
|
+
},
|
|
9128
|
+
{
|
|
9129
|
+
"kind": "Content",
|
|
9130
|
+
"text": "import(\"../create-module.js\")."
|
|
9131
|
+
},
|
|
9132
|
+
{
|
|
9133
|
+
"kind": "Reference",
|
|
9134
|
+
"text": "ModuleRefkeys",
|
|
9135
|
+
"canonicalReference": "@alloy-js/python!ModuleRefkeys:type"
|
|
9136
|
+
},
|
|
9137
|
+
{
|
|
9138
|
+
"kind": "Content",
|
|
9139
|
+
"text": "<{\n readonly \".\": [\"BaseSettings\", \"SettingsConfigDict\"];\n}> & "
|
|
9140
|
+
},
|
|
9141
|
+
{
|
|
9142
|
+
"kind": "Reference",
|
|
9143
|
+
"text": "SymbolCreator",
|
|
9144
|
+
"canonicalReference": "@alloy-js/core!SymbolCreator:interface"
|
|
9145
|
+
}
|
|
9146
|
+
],
|
|
9147
|
+
"fileUrlPath": "src/builtins/python.ts",
|
|
9148
|
+
"isReadonly": true,
|
|
9149
|
+
"releaseTag": "Public",
|
|
9150
|
+
"name": "pydanticSettingsModule",
|
|
9151
|
+
"variableTypeTokenRange": {
|
|
9152
|
+
"startIndex": 1,
|
|
9153
|
+
"endIndex": 5
|
|
9154
|
+
}
|
|
9155
|
+
},
|
|
9156
|
+
{
|
|
9157
|
+
"kind": "Function",
|
|
9158
|
+
"canonicalReference": "@alloy-js/python!PyDoc:function(1)",
|
|
9159
|
+
"docComment": "/**\n * A PyDoc comment. The children of this component are joined with two hard\n * linebreaks. This is useful for creating PyDoc comments with multiple paragraphs.\n */\n",
|
|
9160
|
+
"excerptTokens": [
|
|
9161
|
+
{
|
|
9162
|
+
"kind": "Content",
|
|
9163
|
+
"text": "export declare function PyDoc(props: "
|
|
9164
|
+
},
|
|
9165
|
+
{
|
|
9166
|
+
"kind": "Reference",
|
|
9167
|
+
"text": "PyDocProps",
|
|
9168
|
+
"canonicalReference": "@alloy-js/python!PyDocProps:interface"
|
|
9169
|
+
},
|
|
9170
|
+
{
|
|
9171
|
+
"kind": "Content",
|
|
9172
|
+
"text": "): "
|
|
9173
|
+
},
|
|
9174
|
+
{
|
|
9175
|
+
"kind": "Reference",
|
|
9176
|
+
"text": "Children",
|
|
9177
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
9178
|
+
},
|
|
9179
|
+
{
|
|
9180
|
+
"kind": "Content",
|
|
9181
|
+
"text": ";"
|
|
9182
|
+
}
|
|
9183
|
+
],
|
|
9184
|
+
"fileUrlPath": "src/components/PyDoc.tsx",
|
|
9185
|
+
"returnTypeTokenRange": {
|
|
9186
|
+
"startIndex": 3,
|
|
9187
|
+
"endIndex": 4
|
|
9188
|
+
},
|
|
9189
|
+
"releaseTag": "Public",
|
|
9190
|
+
"overloadIndex": 1,
|
|
9191
|
+
"parameters": [
|
|
9192
|
+
{
|
|
9193
|
+
"parameterName": "props",
|
|
9194
|
+
"parameterTypeTokenRange": {
|
|
9195
|
+
"startIndex": 1,
|
|
9196
|
+
"endIndex": 2
|
|
9197
|
+
},
|
|
9198
|
+
"isOptional": false
|
|
9199
|
+
}
|
|
9200
|
+
],
|
|
9201
|
+
"name": "PyDoc"
|
|
9202
|
+
},
|
|
9203
|
+
{
|
|
9204
|
+
"kind": "Function",
|
|
9205
|
+
"canonicalReference": "@alloy-js/python!PyDocExample:function(1)",
|
|
9206
|
+
"docComment": "/**\n * Create a PyDoc example, which is prepended by \\>\\>.\n */\n",
|
|
9207
|
+
"excerptTokens": [
|
|
9208
|
+
{
|
|
9209
|
+
"kind": "Content",
|
|
9210
|
+
"text": "export declare function PyDocExample(props: "
|
|
9211
|
+
},
|
|
9212
|
+
{
|
|
9213
|
+
"kind": "Reference",
|
|
9214
|
+
"text": "PyDocExampleProps",
|
|
9215
|
+
"canonicalReference": "@alloy-js/python!PyDocExampleProps:interface"
|
|
9216
|
+
},
|
|
9217
|
+
{
|
|
9218
|
+
"kind": "Content",
|
|
9219
|
+
"text": "): "
|
|
9220
|
+
},
|
|
9221
|
+
{
|
|
9222
|
+
"kind": "Reference",
|
|
9223
|
+
"text": "Children",
|
|
9224
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
9225
|
+
},
|
|
9226
|
+
{
|
|
9227
|
+
"kind": "Content",
|
|
9228
|
+
"text": ";"
|
|
9229
|
+
}
|
|
9230
|
+
],
|
|
9231
|
+
"fileUrlPath": "src/components/PyDoc.tsx",
|
|
9232
|
+
"returnTypeTokenRange": {
|
|
9233
|
+
"startIndex": 3,
|
|
9234
|
+
"endIndex": 4
|
|
9235
|
+
},
|
|
9236
|
+
"releaseTag": "Public",
|
|
9237
|
+
"overloadIndex": 1,
|
|
9238
|
+
"parameters": [
|
|
9239
|
+
{
|
|
9240
|
+
"parameterName": "props",
|
|
9241
|
+
"parameterTypeTokenRange": {
|
|
9242
|
+
"startIndex": 1,
|
|
9243
|
+
"endIndex": 2
|
|
9244
|
+
},
|
|
9245
|
+
"isOptional": false
|
|
9246
|
+
}
|
|
9247
|
+
],
|
|
9248
|
+
"name": "PyDocExample"
|
|
9249
|
+
},
|
|
9250
|
+
{
|
|
9251
|
+
"kind": "Interface",
|
|
9252
|
+
"canonicalReference": "@alloy-js/python!PyDocExampleProps:interface",
|
|
9253
|
+
"docComment": "",
|
|
9254
|
+
"excerptTokens": [
|
|
9255
|
+
{
|
|
9256
|
+
"kind": "Content",
|
|
9257
|
+
"text": "export interface PyDocExampleProps "
|
|
9258
|
+
}
|
|
9259
|
+
],
|
|
9260
|
+
"fileUrlPath": "src/components/PyDoc.tsx",
|
|
9261
|
+
"releaseTag": "Public",
|
|
9262
|
+
"name": "PyDocExampleProps",
|
|
9263
|
+
"preserveMemberOrder": false,
|
|
9264
|
+
"members": [
|
|
9265
|
+
{
|
|
9266
|
+
"kind": "PropertySignature",
|
|
9267
|
+
"canonicalReference": "@alloy-js/python!PyDocExampleProps#children:member",
|
|
9268
|
+
"docComment": "",
|
|
9269
|
+
"excerptTokens": [
|
|
9270
|
+
{
|
|
9271
|
+
"kind": "Content",
|
|
9272
|
+
"text": "children: "
|
|
9273
|
+
},
|
|
9274
|
+
{
|
|
9275
|
+
"kind": "Reference",
|
|
9276
|
+
"text": "Children",
|
|
9277
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
9278
|
+
},
|
|
9279
|
+
{
|
|
9280
|
+
"kind": "Content",
|
|
9281
|
+
"text": ";"
|
|
9282
|
+
}
|
|
9283
|
+
],
|
|
9284
|
+
"isReadonly": false,
|
|
9285
|
+
"isOptional": false,
|
|
9286
|
+
"releaseTag": "Public",
|
|
9287
|
+
"name": "children",
|
|
9288
|
+
"propertyTypeTokenRange": {
|
|
9289
|
+
"startIndex": 1,
|
|
9290
|
+
"endIndex": 2
|
|
9291
|
+
}
|
|
9292
|
+
}
|
|
9293
|
+
],
|
|
9294
|
+
"extendsTokenRanges": []
|
|
9295
|
+
},
|
|
9296
|
+
{
|
|
9297
|
+
"kind": "Interface",
|
|
9298
|
+
"canonicalReference": "@alloy-js/python!PyDocProps:interface",
|
|
9299
|
+
"docComment": "",
|
|
9300
|
+
"excerptTokens": [
|
|
9301
|
+
{
|
|
9302
|
+
"kind": "Content",
|
|
9303
|
+
"text": "export interface PyDocProps "
|
|
9304
|
+
}
|
|
9305
|
+
],
|
|
9306
|
+
"fileUrlPath": "src/components/PyDoc.tsx",
|
|
9307
|
+
"releaseTag": "Public",
|
|
9308
|
+
"name": "PyDocProps",
|
|
9309
|
+
"preserveMemberOrder": false,
|
|
9310
|
+
"members": [
|
|
9311
|
+
{
|
|
9312
|
+
"kind": "PropertySignature",
|
|
9313
|
+
"canonicalReference": "@alloy-js/python!PyDocProps#children:member",
|
|
9314
|
+
"docComment": "",
|
|
9315
|
+
"excerptTokens": [
|
|
9316
|
+
{
|
|
9317
|
+
"kind": "Content",
|
|
9318
|
+
"text": "children: "
|
|
9319
|
+
},
|
|
9320
|
+
{
|
|
9321
|
+
"kind": "Reference",
|
|
9322
|
+
"text": "Children",
|
|
9323
|
+
"canonicalReference": "@alloy-js/core!Children:type"
|
|
9324
|
+
},
|
|
9325
|
+
{
|
|
9326
|
+
"kind": "Content",
|
|
9327
|
+
"text": ";"
|
|
9328
|
+
}
|
|
9329
|
+
],
|
|
9330
|
+
"isReadonly": false,
|
|
9331
|
+
"isOptional": false,
|
|
9332
|
+
"releaseTag": "Public",
|
|
9333
|
+
"name": "children",
|
|
9334
|
+
"propertyTypeTokenRange": {
|
|
9335
|
+
"startIndex": 1,
|
|
9336
|
+
"endIndex": 2
|
|
9337
|
+
}
|
|
9338
|
+
}
|
|
9339
|
+
],
|
|
9340
|
+
"extendsTokenRanges": []
|
|
9341
|
+
},
|
|
9342
|
+
{
|
|
9343
|
+
"kind": "Function",
|
|
9344
|
+
"canonicalReference": "@alloy-js/python!PythonBlock:function(1)",
|
|
9345
|
+
"docComment": "/**\n * A Python block component that can be used to render a block of Python code.\n *\n * @example\n * ```tsx\n * <PythonBlock opener=\"def my_function()\">\n * <VariableDeclaration name=\"x\" type=\"int\" />\n * <VariableDeclaration name=\"y\" type=\"str\" />\n * </PythonBlock>\n * ```\n *\n * renders to\n * ```py\n * def my_function():\n * x: int = None\n * y: str = None\n * ```\n *\n */\n",
|
|
9346
|
+
"excerptTokens": [
|
|
9347
|
+
{
|
|
9348
|
+
"kind": "Content",
|
|
9349
|
+
"text": "export declare function PythonBlock(props: "
|
|
9350
|
+
},
|
|
9351
|
+
{
|
|
9352
|
+
"kind": "Reference",
|
|
9353
|
+
"text": "PythonBlockProps",
|
|
8333
9354
|
"canonicalReference": "@alloy-js/python!PythonBlockProps:interface"
|
|
8334
9355
|
},
|
|
8335
9356
|
{
|
|
@@ -10424,7 +11445,7 @@
|
|
|
10424
11445
|
{
|
|
10425
11446
|
"kind": "Interface",
|
|
10426
11447
|
"canonicalReference": "@alloy-js/python!StaticMethodDeclarationProps:interface",
|
|
10427
|
-
"docComment": "/**\n * A Python static method declaration component.\n *\n * @example\n * ```tsx\n * <py.StaticMethodDeclaration name=\"identity\" parameters={[{ name: \"value\", type: \"int\" }]}>\n * return value\n * </py.StaticMethodDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @staticmethod\n * def identity(value: int) -> None:\n * return value\n * ```\n *\n */\n",
|
|
11448
|
+
"docComment": "/**\n * A Python static method declaration component.\n *\n * @remarks\n *\n *\n * Use **`decorators`** for decorators that must appear above `@staticmethod`.\n *\n * @example\n * ```tsx\n * <py.StaticMethodDeclaration name=\"identity\" parameters={[{ name: \"value\", type: \"int\" }]}>\n * return value\n * </py.StaticMethodDeclaration>\n * ```\n *\n * Generates:\n * ```python\n * @staticmethod\n * def identity(value: int) -> None:\n * return value\n * ```\n *\n */\n",
|
|
10428
11449
|
"excerptTokens": [
|
|
10429
11450
|
{
|
|
10430
11451
|
"kind": "Content",
|
|
@@ -10951,6 +11972,43 @@
|
|
|
10951
11972
|
],
|
|
10952
11973
|
"extendsTokenRanges": []
|
|
10953
11974
|
},
|
|
11975
|
+
{
|
|
11976
|
+
"kind": "Variable",
|
|
11977
|
+
"canonicalReference": "@alloy-js/python!typingModule:var",
|
|
11978
|
+
"docComment": "/**\n * `typing` stdlib symbols used heavily with Pydantic generics and annotations.\n */\n",
|
|
11979
|
+
"excerptTokens": [
|
|
11980
|
+
{
|
|
11981
|
+
"kind": "Content",
|
|
11982
|
+
"text": "typingModule: "
|
|
11983
|
+
},
|
|
11984
|
+
{
|
|
11985
|
+
"kind": "Content",
|
|
11986
|
+
"text": "import(\"../create-module.js\")."
|
|
11987
|
+
},
|
|
11988
|
+
{
|
|
11989
|
+
"kind": "Reference",
|
|
11990
|
+
"text": "ModuleRefkeys",
|
|
11991
|
+
"canonicalReference": "@alloy-js/python!ModuleRefkeys:type"
|
|
11992
|
+
},
|
|
11993
|
+
{
|
|
11994
|
+
"kind": "Content",
|
|
11995
|
+
"text": "<{\n readonly \".\": [\"Annotated\", \"Any\", \"ClassVar\", \"Generic\", \"Literal\", \"Optional\", \"Protocol\", \"TypeVar\", \"Union\", \"final\", \"override\", \"runtime_checkable\"];\n}> & "
|
|
11996
|
+
},
|
|
11997
|
+
{
|
|
11998
|
+
"kind": "Reference",
|
|
11999
|
+
"text": "SymbolCreator",
|
|
12000
|
+
"canonicalReference": "@alloy-js/core!SymbolCreator:interface"
|
|
12001
|
+
}
|
|
12002
|
+
],
|
|
12003
|
+
"fileUrlPath": "src/builtins/python.ts",
|
|
12004
|
+
"isReadonly": true,
|
|
12005
|
+
"releaseTag": "Public",
|
|
12006
|
+
"name": "typingModule",
|
|
12007
|
+
"variableTypeTokenRange": {
|
|
12008
|
+
"startIndex": 1,
|
|
12009
|
+
"endIndex": 5
|
|
12010
|
+
}
|
|
12011
|
+
},
|
|
10954
12012
|
{
|
|
10955
12013
|
"kind": "Function",
|
|
10956
12014
|
"canonicalReference": "@alloy-js/python!UnionTypeExpression:function(1)",
|