@alloy-js/python 0.4.0-dev.3 → 0.4.0-dev.6

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.
Files changed (355) hide show
  1. package/dist/dev/src/builtins/python.js +30 -0
  2. package/dist/dev/src/builtins/python.js.map +1 -0
  3. package/dist/dev/src/components/Atom.js +122 -0
  4. package/dist/dev/src/components/Atom.js.map +1 -0
  5. package/dist/dev/src/components/CallSignature.js +195 -0
  6. package/dist/dev/src/components/CallSignature.js.map +1 -0
  7. package/dist/dev/src/components/ClassDeclaration.js +112 -0
  8. package/dist/dev/src/components/ClassDeclaration.js.map +1 -0
  9. package/dist/dev/src/components/ClassInstantiation.js +40 -0
  10. package/dist/dev/src/components/ClassInstantiation.js.map +1 -0
  11. package/dist/dev/src/components/ClassMethodDeclaration.js +40 -0
  12. package/dist/dev/src/components/ClassMethodDeclaration.js.map +1 -0
  13. package/dist/dev/src/components/ConstructorDeclaration.js +39 -0
  14. package/dist/dev/src/components/ConstructorDeclaration.js.map +1 -0
  15. package/dist/dev/src/components/DataclassDeclaration.js +177 -0
  16. package/dist/dev/src/components/DataclassDeclaration.js.map +1 -0
  17. package/dist/dev/src/components/Declaration.js +31 -0
  18. package/dist/dev/src/components/Declaration.js.map +1 -0
  19. package/dist/dev/src/components/DunderMethodDeclaration.js +33 -0
  20. package/dist/dev/src/components/DunderMethodDeclaration.js.map +1 -0
  21. package/dist/dev/src/components/EnumDeclaration.js +259 -0
  22. package/dist/dev/src/components/EnumDeclaration.js.map +1 -0
  23. package/dist/dev/src/components/EnumMember.js +95 -0
  24. package/dist/dev/src/components/EnumMember.js.map +1 -0
  25. package/dist/dev/src/components/FunctionBase.js +130 -0
  26. package/dist/dev/src/components/FunctionBase.js.map +1 -0
  27. package/dist/dev/src/components/FunctionCallExpression.js +53 -0
  28. package/dist/dev/src/components/FunctionCallExpression.js.map +1 -0
  29. package/dist/dev/src/components/FunctionDeclaration.js +45 -0
  30. package/dist/dev/src/components/FunctionDeclaration.js.map +1 -0
  31. package/dist/dev/src/components/FutureStatement.js +31 -0
  32. package/dist/dev/src/components/FutureStatement.js.map +1 -0
  33. package/dist/dev/src/components/ImportStatement.js +167 -0
  34. package/dist/dev/src/components/ImportStatement.js.map +1 -0
  35. package/dist/dev/src/components/LexicalScope.js +26 -0
  36. package/dist/dev/src/components/LexicalScope.js.map +1 -0
  37. package/dist/dev/src/components/MemberExpression.js +290 -0
  38. package/dist/dev/src/components/MemberExpression.js.map +1 -0
  39. package/dist/dev/src/components/MemberScope.js +23 -0
  40. package/dist/dev/src/components/MemberScope.js.map +1 -0
  41. package/dist/dev/src/components/MethodBase.js +40 -0
  42. package/dist/dev/src/components/MethodBase.js.map +1 -0
  43. package/dist/dev/src/components/MethodDeclaration.js +38 -0
  44. package/dist/dev/src/components/MethodDeclaration.js.map +1 -0
  45. package/dist/dev/src/components/PropertyDeclaration.js +287 -0
  46. package/dist/dev/src/components/PropertyDeclaration.js.map +1 -0
  47. package/dist/dev/src/components/PyDoc.js +1478 -0
  48. package/dist/dev/src/components/PyDoc.js.map +1 -0
  49. package/dist/dev/src/components/PythonBlock.js +35 -0
  50. package/dist/dev/src/components/PythonBlock.js.map +1 -0
  51. package/dist/dev/src/components/Reference.js +23 -0
  52. package/dist/dev/src/components/Reference.js.map +1 -0
  53. package/dist/dev/src/components/SourceFile.js +385 -0
  54. package/dist/dev/src/components/SourceFile.js.map +1 -0
  55. package/dist/dev/src/components/StatementList.js +34 -0
  56. package/dist/dev/src/components/StatementList.js.map +1 -0
  57. package/dist/dev/src/components/StaticMethodDeclaration.js +40 -0
  58. package/dist/dev/src/components/StaticMethodDeclaration.js.map +1 -0
  59. package/dist/dev/src/components/TypeArguments.js +22 -0
  60. package/dist/dev/src/components/TypeArguments.js.map +1 -0
  61. package/dist/dev/src/components/TypeRefContext.js +33 -0
  62. package/dist/dev/src/components/TypeRefContext.js.map +1 -0
  63. package/dist/dev/src/components/TypeReference.js +67 -0
  64. package/dist/dev/src/components/TypeReference.js.map +1 -0
  65. package/dist/dev/src/components/UnionTypeExpression.js +57 -0
  66. package/dist/dev/src/components/UnionTypeExpression.js.map +1 -0
  67. package/dist/dev/src/components/VariableDeclaration.js +150 -0
  68. package/dist/dev/src/components/VariableDeclaration.js.map +1 -0
  69. package/dist/dev/src/components/index.js +32 -0
  70. package/dist/dev/src/components/index.js.map +1 -0
  71. package/dist/dev/src/context/index.js +2 -0
  72. package/dist/dev/src/context/index.js.map +1 -0
  73. package/dist/dev/src/context/type-ref-context.js +17 -0
  74. package/dist/dev/src/context/type-ref-context.js.map +1 -0
  75. package/dist/dev/src/create-module.js +64 -0
  76. package/dist/dev/src/create-module.js.map +1 -0
  77. package/dist/dev/src/index.js +8 -0
  78. package/dist/dev/src/index.js.map +1 -0
  79. package/dist/dev/src/name-conflict-resolver.js +8 -0
  80. package/dist/dev/src/name-conflict-resolver.js.map +1 -0
  81. package/dist/dev/src/name-policy.js +48 -0
  82. package/dist/dev/src/name-policy.js.map +1 -0
  83. package/dist/dev/src/parameter-descriptor.js +8 -0
  84. package/dist/dev/src/parameter-descriptor.js.map +1 -0
  85. package/dist/dev/src/symbol-creation.js +58 -0
  86. package/dist/dev/src/symbol-creation.js.map +1 -0
  87. package/dist/dev/src/symbols/factories.js +28 -0
  88. package/dist/dev/src/symbols/factories.js.map +1 -0
  89. package/dist/dev/src/symbols/index.js +8 -0
  90. package/dist/dev/src/symbols/index.js.map +1 -0
  91. package/dist/dev/src/symbols/python-lexical-scope.js +15 -0
  92. package/dist/dev/src/symbols/python-lexical-scope.js.map +1 -0
  93. package/dist/dev/src/symbols/python-member-scope.js +7 -0
  94. package/dist/dev/src/symbols/python-member-scope.js.map +1 -0
  95. package/dist/dev/src/symbols/python-module-scope.js +86 -0
  96. package/dist/dev/src/symbols/python-module-scope.js.map +1 -0
  97. package/dist/dev/src/symbols/python-output-symbol.js +73 -0
  98. package/dist/dev/src/symbols/python-output-symbol.js.map +1 -0
  99. package/dist/dev/src/symbols/reference.js +87 -0
  100. package/dist/dev/src/symbols/reference.js.map +1 -0
  101. package/dist/dev/src/symbols/scopes.js +13 -0
  102. package/dist/dev/src/symbols/scopes.js.map +1 -0
  103. package/dist/dev/src/utils.js +13 -0
  104. package/dist/dev/src/utils.js.map +1 -0
  105. package/dist/dev/test/callsignatures.test.js +482 -0
  106. package/dist/dev/test/callsignatures.test.js.map +1 -0
  107. package/dist/dev/test/class-method-declaration.test.js +85 -0
  108. package/dist/dev/test/class-method-declaration.test.js.map +1 -0
  109. package/dist/dev/test/classdeclarations.test.js +654 -0
  110. package/dist/dev/test/classdeclarations.test.js.map +1 -0
  111. package/dist/dev/test/classinstantiations.test.js +281 -0
  112. package/dist/dev/test/classinstantiations.test.js.map +1 -0
  113. package/dist/dev/test/constructordeclaration.test.js +86 -0
  114. package/dist/dev/test/constructordeclaration.test.js.map +1 -0
  115. package/dist/dev/test/dataclassdeclarations.test.js +1068 -0
  116. package/dist/dev/test/dataclassdeclarations.test.js.map +1 -0
  117. package/dist/dev/test/dundermethoddeclaration.test.js +93 -0
  118. package/dist/dev/test/dundermethoddeclaration.test.js.map +1 -0
  119. package/dist/dev/test/enums.test.js +263 -0
  120. package/dist/dev/test/enums.test.js.map +1 -0
  121. package/dist/dev/test/externals.test.js +307 -0
  122. package/dist/dev/test/externals.test.js.map +1 -0
  123. package/dist/dev/test/factories.test.js +122 -0
  124. package/dist/dev/test/factories.test.js.map +1 -0
  125. package/dist/dev/test/functioncallexpressions.test.js +257 -0
  126. package/dist/dev/test/functioncallexpressions.test.js.map +1 -0
  127. package/dist/dev/test/functiondeclaration.test.js +817 -0
  128. package/dist/dev/test/functiondeclaration.test.js.map +1 -0
  129. package/dist/dev/test/imports.test.js +372 -0
  130. package/dist/dev/test/imports.test.js.map +1 -0
  131. package/dist/dev/test/memberexpressions.test.js +1668 -0
  132. package/dist/dev/test/memberexpressions.test.js.map +1 -0
  133. package/dist/dev/test/methoddeclaration.test.js +344 -0
  134. package/dist/dev/test/methoddeclaration.test.js.map +1 -0
  135. package/dist/dev/test/namepolicies.test.js +154 -0
  136. package/dist/dev/test/namepolicies.test.js.map +1 -0
  137. package/dist/dev/test/propertydeclaration.test.js +354 -0
  138. package/dist/dev/test/propertydeclaration.test.js.map +1 -0
  139. package/dist/dev/test/pydocs.test.js +1675 -0
  140. package/dist/dev/test/pydocs.test.js.map +1 -0
  141. package/dist/dev/test/references.test.js +66 -0
  142. package/dist/dev/test/references.test.js.map +1 -0
  143. package/dist/dev/test/sourcefiles.test.js +1802 -0
  144. package/dist/dev/test/sourcefiles.test.js.map +1 -0
  145. package/dist/dev/test/staticmethoddeclaration.test.js +85 -0
  146. package/dist/dev/test/staticmethoddeclaration.test.js.map +1 -0
  147. package/dist/dev/test/type-checking-imports.test.js +617 -0
  148. package/dist/dev/test/type-checking-imports.test.js.map +1 -0
  149. package/dist/dev/test/typereference.test.js +79 -0
  150. package/dist/dev/test/typereference.test.js.map +1 -0
  151. package/dist/dev/test/uniontypeexpression.test.js +307 -0
  152. package/dist/dev/test/uniontypeexpression.test.js.map +1 -0
  153. package/dist/dev/test/utils.js +100 -0
  154. package/dist/dev/test/utils.js.map +1 -0
  155. package/dist/dev/test/values.test.js +182 -0
  156. package/dist/dev/test/values.test.js.map +1 -0
  157. package/dist/dev/test/variables.test.js +363 -0
  158. package/dist/dev/test/variables.test.js.map +1 -0
  159. package/dist/src/components/CallSignature.d.ts.map +1 -1
  160. package/dist/src/components/CallSignature.js +12 -3
  161. package/dist/src/components/CallSignature.js.map +1 -1
  162. package/dist/src/components/ImportStatement.d.ts +12 -0
  163. package/dist/src/components/ImportStatement.d.ts.map +1 -1
  164. package/dist/src/components/ImportStatement.js +45 -3
  165. package/dist/src/components/ImportStatement.js.map +1 -1
  166. package/dist/src/components/Reference.d.ts.map +1 -1
  167. package/dist/src/components/Reference.js +5 -1
  168. package/dist/src/components/Reference.js.map +1 -1
  169. package/dist/src/components/SourceFile.d.ts +1 -1
  170. package/dist/src/components/SourceFile.d.ts.map +1 -1
  171. package/dist/src/components/SourceFile.js +46 -7
  172. package/dist/src/components/SourceFile.js.map +1 -1
  173. package/dist/src/components/TypeRefContext.d.ts +26 -0
  174. package/dist/src/components/TypeRefContext.d.ts.map +1 -0
  175. package/dist/src/components/TypeRefContext.js +29 -0
  176. package/dist/src/components/TypeRefContext.js.map +1 -0
  177. package/dist/src/components/TypeReference.d.ts +5 -0
  178. package/dist/src/components/TypeReference.d.ts.map +1 -1
  179. package/dist/src/components/TypeReference.js +19 -9
  180. package/dist/src/components/TypeReference.js.map +1 -1
  181. package/dist/src/components/VariableDeclaration.d.ts.map +1 -1
  182. package/dist/src/components/VariableDeclaration.js +7 -2
  183. package/dist/src/components/VariableDeclaration.js.map +1 -1
  184. package/dist/src/components/index.d.ts +1 -1
  185. package/dist/src/components/index.d.ts.map +1 -1
  186. package/dist/src/components/index.js +1 -1
  187. package/dist/src/components/index.js.map +1 -1
  188. package/dist/src/context/index.d.ts +2 -0
  189. package/dist/src/context/index.d.ts.map +1 -0
  190. package/dist/src/context/index.js +2 -0
  191. package/dist/src/context/index.js.map +1 -0
  192. package/dist/src/context/type-ref-context.d.ts +13 -0
  193. package/dist/src/context/type-ref-context.d.ts.map +1 -0
  194. package/dist/src/context/type-ref-context.js +17 -0
  195. package/dist/src/context/type-ref-context.js.map +1 -0
  196. package/dist/src/name-conflict-resolver.d.ts +2 -2
  197. package/dist/src/name-conflict-resolver.d.ts.map +1 -1
  198. package/dist/src/name-conflict-resolver.js +2 -2
  199. package/dist/src/name-conflict-resolver.js.map +1 -1
  200. package/dist/src/symbols/python-module-scope.d.ts +13 -1
  201. package/dist/src/symbols/python-module-scope.d.ts.map +1 -1
  202. package/dist/src/symbols/python-module-scope.js +36 -2
  203. package/dist/src/symbols/python-module-scope.js.map +1 -1
  204. package/dist/src/symbols/python-output-symbol.d.ts +11 -0
  205. package/dist/src/symbols/python-output-symbol.d.ts.map +1 -1
  206. package/dist/src/symbols/python-output-symbol.js +26 -2
  207. package/dist/src/symbols/python-output-symbol.js.map +1 -1
  208. package/dist/src/symbols/reference.d.ts +8 -1
  209. package/dist/src/symbols/reference.d.ts.map +1 -1
  210. package/dist/src/symbols/reference.js +4 -2
  211. package/dist/src/symbols/reference.js.map +1 -1
  212. package/dist/test/dataclassdeclarations.test.js +5 -2
  213. package/dist/test/dataclassdeclarations.test.js.map +1 -1
  214. package/dist/test/externals.test.js +8 -2
  215. package/dist/test/externals.test.js.map +1 -1
  216. package/dist/test/functiondeclaration.test.js +6 -3
  217. package/dist/test/functiondeclaration.test.js.map +1 -1
  218. package/dist/test/imports.test.js +3 -3
  219. package/dist/test/imports.test.js.map +1 -1
  220. package/dist/test/references.test.js +1 -1
  221. package/dist/test/references.test.js.map +1 -1
  222. package/dist/test/sourcefiles.test.js +26 -26
  223. package/dist/test/sourcefiles.test.js.map +1 -1
  224. package/dist/test/type-checking-imports.test.d.ts +2 -0
  225. package/dist/test/type-checking-imports.test.d.ts.map +1 -0
  226. package/dist/test/type-checking-imports.test.js +437 -0
  227. package/dist/test/type-checking-imports.test.js.map +1 -0
  228. package/dist/test/uniontypeexpression.test.js +4 -1
  229. package/dist/test/uniontypeexpression.test.js.map +1 -1
  230. package/dist/test/variables.test.js +4 -1
  231. package/dist/test/variables.test.js.map +1 -1
  232. package/dist/tsconfig.tsbuildinfo +1 -1
  233. package/docs/api/components/AttributeDoc.md +36 -0
  234. package/docs/api/components/CallSignature.md +62 -0
  235. package/docs/api/components/CallSignatureParameters.md +49 -0
  236. package/docs/api/components/ClassDeclaration.md +67 -0
  237. package/docs/api/components/ClassDoc.md +55 -0
  238. package/docs/api/components/ClassEnumDeclaration.md +111 -0
  239. package/docs/api/components/ClassInstantiation.md +44 -0
  240. package/docs/api/components/ClassMethodDeclaration.md +31 -0
  241. package/docs/api/components/ConstructorDeclaration.md +27 -0
  242. package/docs/api/components/DataclassDeclaration.md +55 -0
  243. package/docs/api/components/Declaration.md +41 -0
  244. package/docs/api/components/DunderMethodDeclaration.md +31 -0
  245. package/docs/api/components/EnumMember.md +61 -0
  246. package/docs/api/components/ExceptionDoc.md +55 -0
  247. package/docs/api/components/FunctionCallExpression.md +43 -0
  248. package/docs/api/components/FunctionDeclaration.md +50 -0
  249. package/docs/api/components/FunctionDoc.md +61 -0
  250. package/docs/api/components/FunctionalEnumDeclaration.md +79 -0
  251. package/docs/api/components/FutureStatement.md +51 -0
  252. package/docs/api/components/GeneratorDoc.md +58 -0
  253. package/docs/api/components/InlineDoc.md +29 -0
  254. package/docs/api/components/LexicalScope.md +65 -0
  255. package/docs/api/components/MemberExpression.md +53 -0
  256. package/docs/api/components/MemberScope.md +28 -0
  257. package/docs/api/components/MethodDeclaration.md +49 -0
  258. package/docs/api/components/MethodDoc.md +61 -0
  259. package/docs/api/components/ModuleDoc.md +52 -0
  260. package/docs/api/components/PropertyDeclaration.md +46 -0
  261. package/docs/api/components/PropertyDoc.md +52 -0
  262. package/docs/api/components/PyDoc.md +29 -0
  263. package/docs/api/components/PyDocExample.md +29 -0
  264. package/docs/api/components/PythonBlock.md +47 -0
  265. package/docs/api/components/Reference.md +31 -0
  266. package/docs/api/components/SimpleCommentBlock.md +27 -0
  267. package/docs/api/components/SimpleInlineComment.md +27 -0
  268. package/docs/api/components/SourceFile.md +83 -0
  269. package/docs/api/components/StatementList.md +47 -0
  270. package/docs/api/components/StaticMethodDeclaration.md +31 -0
  271. package/docs/api/components/TypeArguments.md +27 -0
  272. package/docs/api/components/TypeRefContext.md +41 -0
  273. package/docs/api/components/TypeReference.md +37 -0
  274. package/docs/api/components/UnionTypeExpression.md +27 -0
  275. package/docs/api/components/VariableDeclaration.md +87 -0
  276. package/docs/api/components/index.md +46 -0
  277. package/docs/api/components/useSourceFile.md +19 -0
  278. package/docs/api/contexts/PythonSourceFile-context.md +18 -0
  279. package/docs/api/contexts/index.md +3 -0
  280. package/docs/api/functions/createFunctionSymbol.md +23 -0
  281. package/docs/api/functions/createMethodSymbol.md +23 -0
  282. package/docs/api/functions/createModule.md +18 -0
  283. package/docs/api/functions/createPythonNamePolicy.md +17 -0
  284. package/docs/api/functions/getCallSignatureProps.md +21 -0
  285. package/docs/api/functions/index.md +13 -0
  286. package/docs/api/functions/isParameterDescriptor.md +18 -0
  287. package/docs/api/functions/isTypeRefContext.md +17 -0
  288. package/docs/api/functions/ref.md +25 -0
  289. package/docs/api/functions/usePythonLexicalScope.md +17 -0
  290. package/docs/api/functions/usePythonNamePolicy.md +17 -0
  291. package/docs/api/functions/usePythonScope.md +17 -0
  292. package/docs/api/index.md +7 -0
  293. package/docs/api/types/AddImportOptions.md +7 -0
  294. package/docs/api/types/BaseDeclarationProps.md +10 -0
  295. package/docs/api/types/CommonFunctionProps.md +15 -0
  296. package/docs/api/types/CreateModuleProps.md +8 -0
  297. package/docs/api/types/CreatePythonSymbolFunctionOptions.md +9 -0
  298. package/docs/api/types/DataclassDecoratorKey.md +5 -0
  299. package/docs/api/types/DataclassDecoratorKwargs.md +5 -0
  300. package/docs/api/types/EnumPropsBase.md +11 -0
  301. package/docs/api/types/GoogleStyleDocAttributeProps.md +9 -0
  302. package/docs/api/types/ImportRecordProps.md +7 -0
  303. package/docs/api/types/ImportRecords.md +8 -0
  304. package/docs/api/types/ImportedSymbol.md +10 -0
  305. package/docs/api/types/LexicalScopeProps.md +5 -0
  306. package/docs/api/types/MemberExpressionPartProps.md +13 -0
  307. package/docs/api/types/ModuleDescriptor.md +7 -0
  308. package/docs/api/types/ModuleRefkeys.md +7 -0
  309. package/docs/api/types/NamedMap.md +7 -0
  310. package/docs/api/types/ParameterDescriptor.md +13 -0
  311. package/docs/api/types/ParameterMarker.md +5 -0
  312. package/docs/api/types/PropertyMethodDeclarationProps.md +9 -0
  313. package/docs/api/types/PythonElements.md +5 -0
  314. package/docs/api/types/PythonLexicalScope.md +11 -0
  315. package/docs/api/types/PythonMemberScope.md +9 -0
  316. package/docs/api/types/PythonModuleScope.md +13 -0
  317. package/docs/api/types/PythonOutputScope.md +5 -0
  318. package/docs/api/types/PythonOutputSymbol.md +21 -0
  319. package/docs/api/types/PythonOutputSymbolOptions.md +10 -0
  320. package/docs/api/types/RefOptions.md +7 -0
  321. package/docs/api/types/SubscriptionProps.md +9 -0
  322. package/docs/api/types/index.md +31 -0
  323. package/docs/api/variables/abcModule.md +7 -0
  324. package/docs/api/variables/dataclassDecoratorKeySet.md +5 -0
  325. package/docs/api/variables/dataclassDecoratorKeys.md +7 -0
  326. package/docs/api/variables/dataclassesModule.md +7 -0
  327. package/docs/api/variables/enumModule.md +7 -0
  328. package/docs/api/variables/index.md +8 -0
  329. package/docs/api/variables/requestsModule.md +8 -0
  330. package/package.json +7 -5
  331. package/src/components/CallSignature.tsx +6 -2
  332. package/src/components/ImportStatement.tsx +51 -4
  333. package/src/components/Reference.tsx +3 -1
  334. package/src/components/SourceFile.tsx +44 -8
  335. package/src/components/TypeRefContext.tsx +36 -0
  336. package/src/components/TypeReference.tsx +15 -7
  337. package/src/components/VariableDeclaration.tsx +5 -1
  338. package/src/components/index.ts +1 -1
  339. package/src/context/index.ts +1 -0
  340. package/src/context/type-ref-context.tsx +16 -0
  341. package/src/name-conflict-resolver.ts +4 -10
  342. package/src/symbols/python-module-scope.ts +55 -2
  343. package/src/symbols/python-output-symbol.ts +32 -1
  344. package/src/symbols/reference.tsx +10 -0
  345. package/temp/api.json +441 -336
  346. package/test/dataclassdeclarations.test.tsx +8 -2
  347. package/test/externals.test.tsx +8 -2
  348. package/test/functiondeclaration.test.tsx +6 -3
  349. package/test/imports.test.tsx +6 -6
  350. package/test/references.test.tsx +1 -1
  351. package/test/sourcefiles.test.tsx +13 -13
  352. package/test/type-checking-imports.test.tsx +363 -0
  353. package/test/uniontypeexpression.test.tsx +4 -1
  354. package/test/variables.test.tsx +4 -1
  355. package/vitest.config.ts +8 -0
package/temp/api.json CHANGED
@@ -209,6 +209,51 @@
209
209
  "endIndex": 5
210
210
  }
211
211
  },
212
+ {
213
+ "kind": "Interface",
214
+ "canonicalReference": "@alloy-js/python!AddImportOptions:interface",
215
+ "docComment": "",
216
+ "excerptTokens": [
217
+ {
218
+ "kind": "Content",
219
+ "text": "export interface AddImportOptions "
220
+ }
221
+ ],
222
+ "fileUrlPath": "src/symbols/python-module-scope.ts",
223
+ "releaseTag": "Public",
224
+ "name": "AddImportOptions",
225
+ "preserveMemberOrder": false,
226
+ "members": [
227
+ {
228
+ "kind": "PropertySignature",
229
+ "canonicalReference": "@alloy-js/python!AddImportOptions#type:member",
230
+ "docComment": "/**\n * If true, this import is only used in type annotation contexts.\n * Such imports will be guarded with `if TYPE_CHECKING:`.\n */\n",
231
+ "excerptTokens": [
232
+ {
233
+ "kind": "Content",
234
+ "text": "type?: "
235
+ },
236
+ {
237
+ "kind": "Content",
238
+ "text": "boolean"
239
+ },
240
+ {
241
+ "kind": "Content",
242
+ "text": ";"
243
+ }
244
+ ],
245
+ "isReadonly": false,
246
+ "isOptional": true,
247
+ "releaseTag": "Public",
248
+ "name": "type",
249
+ "propertyTypeTokenRange": {
250
+ "startIndex": 1,
251
+ "endIndex": 2
252
+ }
253
+ }
254
+ ],
255
+ "extendsTokenRanges": []
256
+ },
212
257
  {
213
258
  "kind": "Function",
214
259
  "canonicalReference": "@alloy-js/python!Atom:function(1)",
@@ -5283,32 +5328,33 @@
5283
5328
  },
5284
5329
  {
5285
5330
  "kind": "Function",
5286
- "canonicalReference": "@alloy-js/python!ImportStatement:function(1)",
5287
- "docComment": "/**\n * A Python import statement.\n *\n * @remarks\n *\n *\n * This component renders an import statement for a given path and symbols.\n * If no symbols are provided, it will render a simple import statement.\n * If symbols are provided, it will render an import statement with the specified symbols.\n *\n * @example\n * ```tsx\n * <ImportStatement path=\"os\" />\n * <ImportStatement path=\"math\" symbols={new Set([new ImportedSymbol(\"sqrt\", \"sqrt\")])} />\n * ```\n *\n * This will generate:\n * ```python\n * import os\n * from math import sqrt\n * ```\n *\n */\n",
5331
+ "canonicalReference": "@alloy-js/python!InlineDoc:function(1)",
5332
+ "docComment": "/**\n * An inline documentation component for attribute docstrings.\n * Unlike PyDoc, this doesn't add a trailing line break after the closing quotes,\n * which is appropriate for documenting consecutive attributes like enum members.\n */\n",
5288
5333
  "excerptTokens": [
5289
5334
  {
5290
5335
  "kind": "Content",
5291
- "text": "export declare function ImportStatement(props: "
5336
+ "text": "export declare function InlineDoc(props: "
5292
5337
  },
5293
5338
  {
5294
5339
  "kind": "Reference",
5295
- "text": "ImportStatementProps",
5296
- "canonicalReference": "@alloy-js/python!ImportStatementProps:interface"
5340
+ "text": "InlineDocProps",
5341
+ "canonicalReference": "@alloy-js/python!InlineDocProps:interface"
5297
5342
  },
5298
5343
  {
5299
5344
  "kind": "Content",
5300
5345
  "text": "): "
5301
5346
  },
5302
5347
  {
5303
- "kind": "Content",
5304
- "text": "() => any[]"
5348
+ "kind": "Reference",
5349
+ "text": "Children",
5350
+ "canonicalReference": "@alloy-js/core!Children:type"
5305
5351
  },
5306
5352
  {
5307
5353
  "kind": "Content",
5308
5354
  "text": ";"
5309
5355
  }
5310
5356
  ],
5311
- "fileUrlPath": "src/components/ImportStatement.tsx",
5357
+ "fileUrlPath": "src/components/PyDoc.tsx",
5312
5358
  "returnTypeTokenRange": {
5313
5359
  "startIndex": 3,
5314
5360
  "endIndex": 4
@@ -5325,35 +5371,36 @@
5325
5371
  "isOptional": false
5326
5372
  }
5327
5373
  ],
5328
- "name": "ImportStatement"
5374
+ "name": "InlineDoc"
5329
5375
  },
5330
5376
  {
5331
5377
  "kind": "Interface",
5332
- "canonicalReference": "@alloy-js/python!ImportStatementProps:interface",
5378
+ "canonicalReference": "@alloy-js/python!InlineDocProps:interface",
5333
5379
  "docComment": "",
5334
5380
  "excerptTokens": [
5335
5381
  {
5336
5382
  "kind": "Content",
5337
- "text": "export interface ImportStatementProps "
5383
+ "text": "export interface InlineDocProps "
5338
5384
  }
5339
5385
  ],
5340
- "fileUrlPath": "src/components/ImportStatement.tsx",
5386
+ "fileUrlPath": "src/components/PyDoc.tsx",
5341
5387
  "releaseTag": "Public",
5342
- "name": "ImportStatementProps",
5388
+ "name": "InlineDocProps",
5343
5389
  "preserveMemberOrder": false,
5344
5390
  "members": [
5345
5391
  {
5346
5392
  "kind": "PropertySignature",
5347
- "canonicalReference": "@alloy-js/python!ImportStatementProps#path:member",
5393
+ "canonicalReference": "@alloy-js/python!InlineDocProps#children:member",
5348
5394
  "docComment": "",
5349
5395
  "excerptTokens": [
5350
5396
  {
5351
5397
  "kind": "Content",
5352
- "text": "path: "
5398
+ "text": "children: "
5353
5399
  },
5354
5400
  {
5355
- "kind": "Content",
5356
- "text": "string"
5401
+ "kind": "Reference",
5402
+ "text": "Children",
5403
+ "canonicalReference": "@alloy-js/core!Children:type"
5357
5404
  },
5358
5405
  {
5359
5406
  "kind": "Content",
@@ -5363,93 +5410,52 @@
5363
5410
  "isReadonly": false,
5364
5411
  "isOptional": false,
5365
5412
  "releaseTag": "Public",
5366
- "name": "path",
5413
+ "name": "children",
5367
5414
  "propertyTypeTokenRange": {
5368
5415
  "startIndex": 1,
5369
5416
  "endIndex": 2
5370
5417
  }
5371
- },
5372
- {
5373
- "kind": "PropertySignature",
5374
- "canonicalReference": "@alloy-js/python!ImportStatementProps#symbols:member",
5375
- "docComment": "",
5376
- "excerptTokens": [
5377
- {
5378
- "kind": "Content",
5379
- "text": "symbols?: "
5380
- },
5381
- {
5382
- "kind": "Reference",
5383
- "text": "Set",
5384
- "canonicalReference": "!Set:interface"
5385
- },
5386
- {
5387
- "kind": "Content",
5388
- "text": "<"
5389
- },
5390
- {
5391
- "kind": "Reference",
5392
- "text": "ImportedSymbol",
5393
- "canonicalReference": "@alloy-js/python!ImportedSymbol:class"
5394
- },
5395
- {
5396
- "kind": "Content",
5397
- "text": ">"
5398
- },
5399
- {
5400
- "kind": "Content",
5401
- "text": ";"
5402
- }
5403
- ],
5404
- "isReadonly": false,
5405
- "isOptional": true,
5406
- "releaseTag": "Public",
5407
- "name": "symbols",
5408
- "propertyTypeTokenRange": {
5409
- "startIndex": 1,
5410
- "endIndex": 5
5411
- }
5412
5418
  }
5413
5419
  ],
5414
5420
  "extendsTokenRanges": []
5415
5421
  },
5416
5422
  {
5417
5423
  "kind": "Function",
5418
- "canonicalReference": "@alloy-js/python!ImportStatements:function(1)",
5419
- "docComment": "/**\n * A component that renders import statements based on the provided import records.\n *\n * @remarks\n *\n *\n * This component will render import statements for each module and its symbols.\n * If `joinImportsFromSameModule` is true, it will group imports from the same module\n * into a single statement.\n */\n",
5424
+ "canonicalReference": "@alloy-js/python!isParameterDescriptor:function(1)",
5425
+ "docComment": "",
5420
5426
  "excerptTokens": [
5421
5427
  {
5422
5428
  "kind": "Content",
5423
- "text": "export declare function ImportStatements(props: "
5424
- },
5425
- {
5426
- "kind": "Reference",
5427
- "text": "ImportStatementsProps",
5428
- "canonicalReference": "@alloy-js/python!ImportStatementsProps:interface"
5429
+ "text": "export declare function isParameterDescriptor(param: "
5429
5430
  },
5430
5431
  {
5431
5432
  "kind": "Content",
5432
- "text": "): "
5433
+ "text": "unknown"
5433
5434
  },
5434
5435
  {
5435
5436
  "kind": "Content",
5436
- "text": "() => import(\"@alloy-js/core\")."
5437
+ "text": "): "
5437
5438
  },
5438
5439
  {
5439
5440
  "kind": "Reference",
5440
- "text": "Children",
5441
- "canonicalReference": "@alloy-js/core!Children:type"
5441
+ "text": "param",
5442
+ "canonicalReference": "@alloy-js/python!~param"
5442
5443
  },
5443
5444
  {
5444
5445
  "kind": "Content",
5445
- "text": "[]"
5446
+ "text": " is "
5447
+ },
5448
+ {
5449
+ "kind": "Reference",
5450
+ "text": "ParameterDescriptor",
5451
+ "canonicalReference": "@alloy-js/python!ParameterDescriptor:interface"
5446
5452
  },
5447
5453
  {
5448
5454
  "kind": "Content",
5449
5455
  "text": ";"
5450
5456
  }
5451
5457
  ],
5452
- "fileUrlPath": "src/components/ImportStatement.tsx",
5458
+ "fileUrlPath": "src/parameter-descriptor.ts",
5453
5459
  "returnTypeTokenRange": {
5454
5460
  "startIndex": 3,
5455
5461
  "endIndex": 6
@@ -5458,7 +5464,7 @@
5458
5464
  "overloadIndex": 1,
5459
5465
  "parameters": [
5460
5466
  {
5461
- "parameterName": "props",
5467
+ "parameterName": "param",
5462
5468
  "parameterTypeTokenRange": {
5463
5469
  "startIndex": 1,
5464
5470
  "endIndex": 2
@@ -5466,99 +5472,89 @@
5466
5472
  "isOptional": false
5467
5473
  }
5468
5474
  ],
5469
- "name": "ImportStatements"
5475
+ "name": "isParameterDescriptor"
5470
5476
  },
5471
5477
  {
5472
- "kind": "Interface",
5473
- "canonicalReference": "@alloy-js/python!ImportStatementsProps:interface",
5474
- "docComment": "",
5478
+ "kind": "Function",
5479
+ "canonicalReference": "@alloy-js/python!isTypeRefContext:function(1)",
5480
+ "docComment": "/**\n * @returns 'true' if in a type context, 'false' if in a value context.\n */\n",
5475
5481
  "excerptTokens": [
5476
5482
  {
5477
5483
  "kind": "Content",
5478
- "text": "export interface ImportStatementsProps "
5484
+ "text": "export declare function isTypeRefContext(): "
5485
+ },
5486
+ {
5487
+ "kind": "Content",
5488
+ "text": "boolean"
5489
+ },
5490
+ {
5491
+ "kind": "Content",
5492
+ "text": ";"
5479
5493
  }
5480
5494
  ],
5481
- "fileUrlPath": "src/components/ImportStatement.tsx",
5495
+ "fileUrlPath": "src/context/type-ref-context.tsx",
5496
+ "returnTypeTokenRange": {
5497
+ "startIndex": 1,
5498
+ "endIndex": 2
5499
+ },
5482
5500
  "releaseTag": "Public",
5483
- "name": "ImportStatementsProps",
5484
- "preserveMemberOrder": false,
5485
- "members": [
5501
+ "overloadIndex": 1,
5502
+ "parameters": [],
5503
+ "name": "isTypeRefContext"
5504
+ },
5505
+ {
5506
+ "kind": "Interface",
5507
+ "canonicalReference": "@alloy-js/python!LeixcalScopePropsWithScopeInfo:interface",
5508
+ "docComment": "",
5509
+ "excerptTokens": [
5486
5510
  {
5487
- "kind": "PropertySignature",
5488
- "canonicalReference": "@alloy-js/python!ImportStatementsProps#joinImportsFromSameModule:member",
5489
- "docComment": "",
5490
- "excerptTokens": [
5491
- {
5492
- "kind": "Content",
5493
- "text": "joinImportsFromSameModule?: "
5494
- },
5495
- {
5496
- "kind": "Content",
5497
- "text": "boolean"
5498
- },
5499
- {
5500
- "kind": "Content",
5501
- "text": ";"
5502
- }
5503
- ],
5504
- "isReadonly": false,
5505
- "isOptional": true,
5506
- "releaseTag": "Public",
5507
- "name": "joinImportsFromSameModule",
5508
- "propertyTypeTokenRange": {
5509
- "startIndex": 1,
5510
- "endIndex": 2
5511
- }
5511
+ "kind": "Content",
5512
+ "text": "export interface LeixcalScopePropsWithScopeInfo extends "
5512
5513
  },
5513
5514
  {
5514
- "kind": "PropertySignature",
5515
- "canonicalReference": "@alloy-js/python!ImportStatementsProps#records:member",
5516
- "docComment": "",
5517
- "excerptTokens": [
5518
- {
5519
- "kind": "Content",
5520
- "text": "records: "
5521
- },
5522
- {
5523
- "kind": "Reference",
5524
- "text": "ImportRecords",
5525
- "canonicalReference": "@alloy-js/python!ImportRecords:class"
5526
- },
5527
- {
5528
- "kind": "Content",
5529
- "text": ";"
5530
- }
5531
- ],
5532
- "isReadonly": false,
5533
- "isOptional": false,
5534
- "releaseTag": "Public",
5535
- "name": "records",
5536
- "propertyTypeTokenRange": {
5537
- "startIndex": 1,
5538
- "endIndex": 2
5539
- }
5515
+ "kind": "Reference",
5516
+ "text": "ScopePropsWithInfo",
5517
+ "canonicalReference": "@alloy-js/core!ScopePropsWithInfo:interface"
5518
+ },
5519
+ {
5520
+ "kind": "Content",
5521
+ "text": " "
5540
5522
  }
5541
5523
  ],
5542
- "extendsTokenRanges": []
5524
+ "fileUrlPath": "src/components/LexicalScope.tsx",
5525
+ "releaseTag": "Public",
5526
+ "name": "LeixcalScopePropsWithScopeInfo",
5527
+ "preserveMemberOrder": false,
5528
+ "members": [],
5529
+ "extendsTokenRanges": [
5530
+ {
5531
+ "startIndex": 1,
5532
+ "endIndex": 2
5533
+ }
5534
+ ]
5543
5535
  },
5544
5536
  {
5545
5537
  "kind": "Function",
5546
- "canonicalReference": "@alloy-js/python!InlineDoc:function(1)",
5547
- "docComment": "/**\n * An inline documentation component for attribute docstrings.\n * Unlike PyDoc, this doesn't add a trailing line break after the closing quotes,\n * which is appropriate for documenting consecutive attributes like enum members.\n */\n",
5538
+ "canonicalReference": "@alloy-js/python!LexicalScope:function(1)",
5539
+ "docComment": "",
5548
5540
  "excerptTokens": [
5549
5541
  {
5550
5542
  "kind": "Content",
5551
- "text": "export declare function InlineDoc(props: "
5543
+ "text": "export declare function LexicalScope(props: "
5552
5544
  },
5553
5545
  {
5554
5546
  "kind": "Reference",
5555
- "text": "InlineDocProps",
5556
- "canonicalReference": "@alloy-js/python!InlineDocProps:interface"
5547
+ "text": "LexicalScopeProps",
5548
+ "canonicalReference": "@alloy-js/python!LexicalScopeProps:type"
5557
5549
  },
5558
5550
  {
5559
5551
  "kind": "Content",
5560
5552
  "text": "): "
5561
5553
  },
5554
+ {
5555
+ "kind": "Content",
5556
+ "text": "import(\"@alloy-js/core\")."
5557
+ },
5562
5558
  {
5563
5559
  "kind": "Reference",
5564
5560
  "text": "Children",
@@ -5569,10 +5565,10 @@
5569
5565
  "text": ";"
5570
5566
  }
5571
5567
  ],
5572
- "fileUrlPath": "src/components/PyDoc.tsx",
5568
+ "fileUrlPath": "src/components/LexicalScope.tsx",
5573
5569
  "returnTypeTokenRange": {
5574
5570
  "startIndex": 3,
5575
- "endIndex": 4
5571
+ "endIndex": 5
5576
5572
  },
5577
5573
  "releaseTag": "Public",
5578
5574
  "overloadIndex": 1,
@@ -5586,200 +5582,17 @@
5586
5582
  "isOptional": false
5587
5583
  }
5588
5584
  ],
5589
- "name": "InlineDoc"
5585
+ "name": "LexicalScope"
5590
5586
  },
5591
5587
  {
5592
- "kind": "Interface",
5593
- "canonicalReference": "@alloy-js/python!InlineDocProps:interface",
5588
+ "kind": "TypeAlias",
5589
+ "canonicalReference": "@alloy-js/python!LexicalScopeProps:type",
5594
5590
  "docComment": "",
5595
5591
  "excerptTokens": [
5596
5592
  {
5597
5593
  "kind": "Content",
5598
- "text": "export interface InlineDocProps "
5599
- }
5600
- ],
5601
- "fileUrlPath": "src/components/PyDoc.tsx",
5602
- "releaseTag": "Public",
5603
- "name": "InlineDocProps",
5604
- "preserveMemberOrder": false,
5605
- "members": [
5606
- {
5607
- "kind": "PropertySignature",
5608
- "canonicalReference": "@alloy-js/python!InlineDocProps#children:member",
5609
- "docComment": "",
5610
- "excerptTokens": [
5611
- {
5612
- "kind": "Content",
5613
- "text": "children: "
5614
- },
5615
- {
5616
- "kind": "Reference",
5617
- "text": "Children",
5618
- "canonicalReference": "@alloy-js/core!Children:type"
5619
- },
5620
- {
5621
- "kind": "Content",
5622
- "text": ";"
5623
- }
5624
- ],
5625
- "isReadonly": false,
5626
- "isOptional": false,
5627
- "releaseTag": "Public",
5628
- "name": "children",
5629
- "propertyTypeTokenRange": {
5630
- "startIndex": 1,
5631
- "endIndex": 2
5632
- }
5633
- }
5634
- ],
5635
- "extendsTokenRanges": []
5636
- },
5637
- {
5638
- "kind": "Function",
5639
- "canonicalReference": "@alloy-js/python!isParameterDescriptor:function(1)",
5640
- "docComment": "",
5641
- "excerptTokens": [
5642
- {
5643
- "kind": "Content",
5644
- "text": "export declare function isParameterDescriptor(param: "
5645
- },
5646
- {
5647
- "kind": "Content",
5648
- "text": "unknown"
5649
- },
5650
- {
5651
- "kind": "Content",
5652
- "text": "): "
5653
- },
5654
- {
5655
- "kind": "Reference",
5656
- "text": "param",
5657
- "canonicalReference": "@alloy-js/python!~param"
5658
- },
5659
- {
5660
- "kind": "Content",
5661
- "text": " is "
5662
- },
5663
- {
5664
- "kind": "Reference",
5665
- "text": "ParameterDescriptor",
5666
- "canonicalReference": "@alloy-js/python!ParameterDescriptor:interface"
5667
- },
5668
- {
5669
- "kind": "Content",
5670
- "text": ";"
5671
- }
5672
- ],
5673
- "fileUrlPath": "src/parameter-descriptor.ts",
5674
- "returnTypeTokenRange": {
5675
- "startIndex": 3,
5676
- "endIndex": 6
5677
- },
5678
- "releaseTag": "Public",
5679
- "overloadIndex": 1,
5680
- "parameters": [
5681
- {
5682
- "parameterName": "param",
5683
- "parameterTypeTokenRange": {
5684
- "startIndex": 1,
5685
- "endIndex": 2
5686
- },
5687
- "isOptional": false
5688
- }
5689
- ],
5690
- "name": "isParameterDescriptor"
5691
- },
5692
- {
5693
- "kind": "Interface",
5694
- "canonicalReference": "@alloy-js/python!LeixcalScopePropsWithScopeInfo:interface",
5695
- "docComment": "",
5696
- "excerptTokens": [
5697
- {
5698
- "kind": "Content",
5699
- "text": "export interface LeixcalScopePropsWithScopeInfo extends "
5700
- },
5701
- {
5702
- "kind": "Reference",
5703
- "text": "ScopePropsWithInfo",
5704
- "canonicalReference": "@alloy-js/core!ScopePropsWithInfo:interface"
5705
- },
5706
- {
5707
- "kind": "Content",
5708
- "text": " "
5709
- }
5710
- ],
5711
- "fileUrlPath": "src/components/LexicalScope.tsx",
5712
- "releaseTag": "Public",
5713
- "name": "LeixcalScopePropsWithScopeInfo",
5714
- "preserveMemberOrder": false,
5715
- "members": [],
5716
- "extendsTokenRanges": [
5717
- {
5718
- "startIndex": 1,
5719
- "endIndex": 2
5720
- }
5721
- ]
5722
- },
5723
- {
5724
- "kind": "Function",
5725
- "canonicalReference": "@alloy-js/python!LexicalScope:function(1)",
5726
- "docComment": "",
5727
- "excerptTokens": [
5728
- {
5729
- "kind": "Content",
5730
- "text": "export declare function LexicalScope(props: "
5731
- },
5732
- {
5733
- "kind": "Reference",
5734
- "text": "LexicalScopeProps",
5735
- "canonicalReference": "@alloy-js/python!LexicalScopeProps:type"
5736
- },
5737
- {
5738
- "kind": "Content",
5739
- "text": "): "
5740
- },
5741
- {
5742
- "kind": "Content",
5743
- "text": "import(\"@alloy-js/core\")."
5744
- },
5745
- {
5746
- "kind": "Reference",
5747
- "text": "Children",
5748
- "canonicalReference": "@alloy-js/core!Children:type"
5749
- },
5750
- {
5751
- "kind": "Content",
5752
- "text": ";"
5753
- }
5754
- ],
5755
- "fileUrlPath": "src/components/LexicalScope.tsx",
5756
- "returnTypeTokenRange": {
5757
- "startIndex": 3,
5758
- "endIndex": 5
5759
- },
5760
- "releaseTag": "Public",
5761
- "overloadIndex": 1,
5762
- "parameters": [
5763
- {
5764
- "parameterName": "props",
5765
- "parameterTypeTokenRange": {
5766
- "startIndex": 1,
5767
- "endIndex": 2
5768
- },
5769
- "isOptional": false
5770
- }
5771
- ],
5772
- "name": "LexicalScope"
5773
- },
5774
- {
5775
- "kind": "TypeAlias",
5776
- "canonicalReference": "@alloy-js/python!LexicalScopeProps:type",
5777
- "docComment": "",
5778
- "excerptTokens": [
5779
- {
5780
- "kind": "Content",
5781
- "text": "export type LexicalScopeProps = "
5782
- },
5594
+ "text": "export type LexicalScopeProps = "
5595
+ },
5783
5596
  {
5784
5597
  "kind": "Reference",
5785
5598
  "text": "LexicalScopePropsWithScopeValue",
@@ -8889,6 +8702,15 @@
8889
8702
  "text": "PythonModuleScope",
8890
8703
  "canonicalReference": "@alloy-js/python!PythonModuleScope:class"
8891
8704
  },
8705
+ {
8706
+ "kind": "Content",
8707
+ "text": ", options?: "
8708
+ },
8709
+ {
8710
+ "kind": "Reference",
8711
+ "text": "AddImportOptions",
8712
+ "canonicalReference": "@alloy-js/python!AddImportOptions:interface"
8713
+ },
8892
8714
  {
8893
8715
  "kind": "Content",
8894
8716
  "text": "): "
@@ -8905,8 +8727,8 @@
8905
8727
  ],
8906
8728
  "isStatic": false,
8907
8729
  "returnTypeTokenRange": {
8908
- "startIndex": 5,
8909
- "endIndex": 6
8730
+ "startIndex": 7,
8731
+ "endIndex": 8
8910
8732
  },
8911
8733
  "releaseTag": "Public",
8912
8734
  "isProtected": false,
@@ -8927,12 +8749,52 @@
8927
8749
  "endIndex": 4
8928
8750
  },
8929
8751
  "isOptional": false
8752
+ },
8753
+ {
8754
+ "parameterName": "options",
8755
+ "parameterTypeTokenRange": {
8756
+ "startIndex": 5,
8757
+ "endIndex": 6
8758
+ },
8759
+ "isOptional": true
8930
8760
  }
8931
8761
  ],
8932
8762
  "isOptional": false,
8933
8763
  "isAbstract": false,
8934
8764
  "name": "addImport"
8935
8765
  },
8766
+ {
8767
+ "kind": "Method",
8768
+ "canonicalReference": "@alloy-js/python!PythonModuleScope#addTypeImport:member(1)",
8769
+ "docComment": "/**\n * Add TYPE_CHECKING import from the typing module.\n * Returns the local symbol for use in the if block opener.\n */\n",
8770
+ "excerptTokens": [
8771
+ {
8772
+ "kind": "Content",
8773
+ "text": "addTypeImport(): "
8774
+ },
8775
+ {
8776
+ "kind": "Reference",
8777
+ "text": "PythonOutputSymbol",
8778
+ "canonicalReference": "@alloy-js/python!PythonOutputSymbol:class"
8779
+ },
8780
+ {
8781
+ "kind": "Content",
8782
+ "text": ";"
8783
+ }
8784
+ ],
8785
+ "isStatic": false,
8786
+ "returnTypeTokenRange": {
8787
+ "startIndex": 1,
8788
+ "endIndex": 2
8789
+ },
8790
+ "releaseTag": "Public",
8791
+ "isProtected": false,
8792
+ "overloadIndex": 1,
8793
+ "parameters": [],
8794
+ "isOptional": false,
8795
+ "isAbstract": false,
8796
+ "name": "addTypeImport"
8797
+ },
8936
8798
  {
8937
8799
  "kind": "Property",
8938
8800
  "canonicalReference": "@alloy-js/python!PythonModuleScope#debugInfo:member",
@@ -9375,6 +9237,67 @@
9375
9237
  "isProtected": false,
9376
9238
  "isAbstract": false
9377
9239
  },
9240
+ {
9241
+ "kind": "Property",
9242
+ "canonicalReference": "@alloy-js/python!PythonOutputSymbol#isTypeOnly:member",
9243
+ "docComment": "/**\n * Returns true if this symbol is only used in type annotation contexts.\n * Such symbols can be imported inside a TYPE_CHECKING block.\n */\n",
9244
+ "excerptTokens": [
9245
+ {
9246
+ "kind": "Content",
9247
+ "text": "get isTypeOnly(): "
9248
+ },
9249
+ {
9250
+ "kind": "Content",
9251
+ "text": "boolean"
9252
+ },
9253
+ {
9254
+ "kind": "Content",
9255
+ "text": ";"
9256
+ }
9257
+ ],
9258
+ "isReadonly": true,
9259
+ "isOptional": false,
9260
+ "releaseTag": "Public",
9261
+ "name": "isTypeOnly",
9262
+ "propertyTypeTokenRange": {
9263
+ "startIndex": 1,
9264
+ "endIndex": 2
9265
+ },
9266
+ "isStatic": false,
9267
+ "isProtected": false,
9268
+ "isAbstract": false
9269
+ },
9270
+ {
9271
+ "kind": "Method",
9272
+ "canonicalReference": "@alloy-js/python!PythonOutputSymbol#markAsValue:member(1)",
9273
+ "docComment": "/**\n * Mark this symbol as also being used as a value (not just a type).\n */\n",
9274
+ "excerptTokens": [
9275
+ {
9276
+ "kind": "Content",
9277
+ "text": "markAsValue(): "
9278
+ },
9279
+ {
9280
+ "kind": "Content",
9281
+ "text": "void"
9282
+ },
9283
+ {
9284
+ "kind": "Content",
9285
+ "text": ";"
9286
+ }
9287
+ ],
9288
+ "isStatic": false,
9289
+ "returnTypeTokenRange": {
9290
+ "startIndex": 1,
9291
+ "endIndex": 2
9292
+ },
9293
+ "releaseTag": "Public",
9294
+ "isProtected": false,
9295
+ "overloadIndex": 1,
9296
+ "parameters": [],
9297
+ "isOptional": false,
9298
+ "isAbstract": false,
9299
+ "name": "markAsValue"
9300
+ },
9378
9301
  {
9379
9302
  "kind": "Property",
9380
9303
  "canonicalReference": "@alloy-js/python!PythonOutputSymbol.memberSpaces:member",
@@ -9527,6 +9450,33 @@
9527
9450
  "startIndex": 1,
9528
9451
  "endIndex": 2
9529
9452
  }
9453
+ },
9454
+ {
9455
+ "kind": "PropertySignature",
9456
+ "canonicalReference": "@alloy-js/python!PythonOutputSymbolOptions#typeOnly:member",
9457
+ "docComment": "/**\n * Whether this symbol is only used in type annotation contexts\n */\n",
9458
+ "excerptTokens": [
9459
+ {
9460
+ "kind": "Content",
9461
+ "text": "typeOnly?: "
9462
+ },
9463
+ {
9464
+ "kind": "Content",
9465
+ "text": "boolean"
9466
+ },
9467
+ {
9468
+ "kind": "Content",
9469
+ "text": ";"
9470
+ }
9471
+ ],
9472
+ "isReadonly": false,
9473
+ "isOptional": true,
9474
+ "releaseTag": "Public",
9475
+ "name": "typeOnly",
9476
+ "propertyTypeTokenRange": {
9477
+ "startIndex": 1,
9478
+ "endIndex": 2
9479
+ }
9530
9480
  }
9531
9481
  ],
9532
9482
  "extendsTokenRanges": [
@@ -9660,6 +9610,15 @@
9660
9610
  "text": "Refkey",
9661
9611
  "canonicalReference": "@alloy-js/core!Refkey:type"
9662
9612
  },
9613
+ {
9614
+ "kind": "Content",
9615
+ "text": ", options?: "
9616
+ },
9617
+ {
9618
+ "kind": "Reference",
9619
+ "text": "RefOptions",
9620
+ "canonicalReference": "@alloy-js/python!RefOptions:interface"
9621
+ },
9663
9622
  {
9664
9623
  "kind": "Content",
9665
9624
  "text": "): "
@@ -9693,8 +9652,8 @@
9693
9652
  ],
9694
9653
  "fileUrlPath": "src/symbols/reference.tsx",
9695
9654
  "returnTypeTokenRange": {
9696
- "startIndex": 3,
9697
- "endIndex": 8
9655
+ "startIndex": 5,
9656
+ "endIndex": 10
9698
9657
  },
9699
9658
  "releaseTag": "Public",
9700
9659
  "overloadIndex": 1,
@@ -9706,6 +9665,14 @@
9706
9665
  "endIndex": 2
9707
9666
  },
9708
9667
  "isOptional": false
9668
+ },
9669
+ {
9670
+ "parameterName": "options",
9671
+ "parameterTypeTokenRange": {
9672
+ "startIndex": 3,
9673
+ "endIndex": 4
9674
+ },
9675
+ "isOptional": true
9709
9676
  }
9710
9677
  ],
9711
9678
  "name": "ref"
@@ -9807,6 +9774,51 @@
9807
9774
  ],
9808
9775
  "extendsTokenRanges": []
9809
9776
  },
9777
+ {
9778
+ "kind": "Interface",
9779
+ "canonicalReference": "@alloy-js/python!RefOptions:interface",
9780
+ "docComment": "",
9781
+ "excerptTokens": [
9782
+ {
9783
+ "kind": "Content",
9784
+ "text": "export interface RefOptions "
9785
+ }
9786
+ ],
9787
+ "fileUrlPath": "src/symbols/reference.tsx",
9788
+ "releaseTag": "Public",
9789
+ "name": "RefOptions",
9790
+ "preserveMemberOrder": false,
9791
+ "members": [
9792
+ {
9793
+ "kind": "PropertySignature",
9794
+ "canonicalReference": "@alloy-js/python!RefOptions#type:member",
9795
+ "docComment": "/**\n * If true, this reference is only used in a type annotation context.\n * The import will be guarded with `if TYPE_CHECKING:`.\n */\n",
9796
+ "excerptTokens": [
9797
+ {
9798
+ "kind": "Content",
9799
+ "text": "type?: "
9800
+ },
9801
+ {
9802
+ "kind": "Content",
9803
+ "text": "boolean"
9804
+ },
9805
+ {
9806
+ "kind": "Content",
9807
+ "text": ";"
9808
+ }
9809
+ ],
9810
+ "isReadonly": false,
9811
+ "isOptional": true,
9812
+ "releaseTag": "Public",
9813
+ "name": "type",
9814
+ "propertyTypeTokenRange": {
9815
+ "startIndex": 1,
9816
+ "endIndex": 2
9817
+ }
9818
+ }
9819
+ ],
9820
+ "extendsTokenRanges": []
9821
+ },
9810
9822
  {
9811
9823
  "kind": "Variable",
9812
9824
  "canonicalReference": "@alloy-js/python!requestsModule:var",
@@ -10162,6 +10174,10 @@
10162
10174
  "text": "Children",
10163
10175
  "canonicalReference": "@alloy-js/core!Children:type"
10164
10176
  },
10177
+ {
10178
+ "kind": "Content",
10179
+ "text": "[]"
10180
+ },
10165
10181
  {
10166
10182
  "kind": "Content",
10167
10183
  "text": ";"
@@ -10173,7 +10189,7 @@
10173
10189
  "name": "futureImports",
10174
10190
  "propertyTypeTokenRange": {
10175
10191
  "startIndex": 1,
10176
- "endIndex": 2
10192
+ "endIndex": 3
10177
10193
  }
10178
10194
  },
10179
10195
  {
@@ -10693,10 +10709,99 @@
10693
10709
  ],
10694
10710
  "extendsTokenRanges": []
10695
10711
  },
10712
+ {
10713
+ "kind": "Function",
10714
+ "canonicalReference": "@alloy-js/python!TypeRefContext:function(1)",
10715
+ "docComment": "/**\n * Set the current context of reference to be type reference.\n *\n * @remarks\n *\n *\n * References used inside the children of this component will be treated as\n * type-only references. When a symbol is only referenced in type contexts,\n * it will be imported inside a `if TYPE_CHECKING:` block.\n *\n * @example\n * ```tsx\n * <TypeRefContext>\n * {someTypeRefkey}\n * </TypeRefContext>\n * ```\n *\n */\n",
10716
+ "excerptTokens": [
10717
+ {
10718
+ "kind": "Content",
10719
+ "text": "TypeRefContext: ({ children }: "
10720
+ },
10721
+ {
10722
+ "kind": "Reference",
10723
+ "text": "TypeRefContextProps",
10724
+ "canonicalReference": "@alloy-js/python!TypeRefContextProps:interface"
10725
+ },
10726
+ {
10727
+ "kind": "Content",
10728
+ "text": ") => "
10729
+ },
10730
+ {
10731
+ "kind": "Reference",
10732
+ "text": "Children",
10733
+ "canonicalReference": "@alloy-js/core!Children:type"
10734
+ }
10735
+ ],
10736
+ "fileUrlPath": "src/components/TypeRefContext.tsx",
10737
+ "returnTypeTokenRange": {
10738
+ "startIndex": 3,
10739
+ "endIndex": 4
10740
+ },
10741
+ "releaseTag": "Public",
10742
+ "overloadIndex": 1,
10743
+ "parameters": [
10744
+ {
10745
+ "parameterName": "{ children }",
10746
+ "parameterTypeTokenRange": {
10747
+ "startIndex": 1,
10748
+ "endIndex": 2
10749
+ },
10750
+ "isOptional": false
10751
+ }
10752
+ ],
10753
+ "name": "TypeRefContext"
10754
+ },
10755
+ {
10756
+ "kind": "Interface",
10757
+ "canonicalReference": "@alloy-js/python!TypeRefContextProps:interface",
10758
+ "docComment": "",
10759
+ "excerptTokens": [
10760
+ {
10761
+ "kind": "Content",
10762
+ "text": "export interface TypeRefContextProps "
10763
+ }
10764
+ ],
10765
+ "fileUrlPath": "src/components/TypeRefContext.tsx",
10766
+ "releaseTag": "Public",
10767
+ "name": "TypeRefContextProps",
10768
+ "preserveMemberOrder": false,
10769
+ "members": [
10770
+ {
10771
+ "kind": "PropertySignature",
10772
+ "canonicalReference": "@alloy-js/python!TypeRefContextProps#children:member",
10773
+ "docComment": "/**\n * Children\n */\n",
10774
+ "excerptTokens": [
10775
+ {
10776
+ "kind": "Content",
10777
+ "text": "children: "
10778
+ },
10779
+ {
10780
+ "kind": "Reference",
10781
+ "text": "Children",
10782
+ "canonicalReference": "@alloy-js/core!Children:type"
10783
+ },
10784
+ {
10785
+ "kind": "Content",
10786
+ "text": ";"
10787
+ }
10788
+ ],
10789
+ "isReadonly": false,
10790
+ "isOptional": false,
10791
+ "releaseTag": "Public",
10792
+ "name": "children",
10793
+ "propertyTypeTokenRange": {
10794
+ "startIndex": 1,
10795
+ "endIndex": 2
10796
+ }
10797
+ }
10798
+ ],
10799
+ "extendsTokenRanges": []
10800
+ },
10696
10801
  {
10697
10802
  "kind": "Function",
10698
10803
  "canonicalReference": "@alloy-js/python!TypeReference:function(1)",
10699
- "docComment": "/**\n * A type reference like Foo[T, P] or int.\n */\n",
10804
+ "docComment": "/**\n * A type reference like Foo[T, P] or int.\n *\n * @remarks\n *\n *\n * This component automatically wraps its content in a type reference context,\n * so any symbols referenced via refkey will be imported as type-only\n * (inside a `if TYPE_CHECKING:` block) unless also used as values elsewhere.\n */\n",
10700
10805
  "excerptTokens": [
10701
10806
  {
10702
10807
  "kind": "Content",