···1515import { fromRef, isNode, isRef, isSymbol, nodeBrand, ref } from '@hey-api/codegen-core';
1616import type { AnyString } from '@hey-api/types';
17171818-import { py } from '../ts-python';
1818+import { py } from '../py-compiler';
1919import type { AccessOptions } from './utils/context';
20202121export abstract class PyDsl<T extends py.Node = py.Node> implements Node<T> {
+1-1
packages/openapi-python/src/py-dsl/decl/class.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { isSymbol, ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { type MaybePyDsl, PyDsl } from '../base';
66import { NewlinePyDsl } from '../layout/newline';
77import { DecoratorMixin } from '../mixins/decorator';
+1-1
packages/openapi-python/src/py-dsl/decl/func.ts
···11import type { AnalysisContext, NodeName, NodeNameSanitizer } from '@hey-api/codegen-core';
22import { isSymbol } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
66import { DecoratorMixin } from '../mixins/decorator';
77import { DoMixin } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/decl/param.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
6677export type ParamDefaultValue = NodeName | py.Expression | undefined;
+1-1
packages/openapi-python/src/py-dsl/expr/attr.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { fromRef, isSymbol, ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77import { ExprMixin } from '../mixins/expr';
+1-1
packages/openapi-python/src/py-dsl/expr/binary.ts
···11import type { AnalysisContext, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77
+1-1
packages/openapi-python/src/py-dsl/expr/call.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77import { ArgsMixin } from '../mixins/args';
+1-1
packages/openapi-python/src/py-dsl/expr/dict.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import { LayoutMixin } from '../mixins/layout';
+1-1
packages/openapi-python/src/py-dsl/expr/expr.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { isNode, isSymbol, ref } from '@hey-api/codegen-core';
3344-import type { py } from '../../ts-python';
44+import type { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77import { ExprMixin } from '../mixins/expr';
···11import type { AnalysisContext, NodeName } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566const Mixed = PyDsl<py.Identifier>;
+1-1
packages/openapi-python/src/py-dsl/expr/kwarg.ts
···11import type { NodeName } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66
+1-1
packages/openapi-python/src/py-dsl/expr/list.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import { LayoutMixin } from '../mixins/layout';
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566export type LiteralValue = string | number | boolean | null;
+1-1
packages/openapi-python/src/py-dsl/expr/set.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import { LayoutMixin } from '../mixins/layout';
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
66import { LayoutMixin } from '../mixins/layout';
77import { f } from '../utils/factories';
+1-1
packages/openapi-python/src/py-dsl/expr/tuple.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77import { LayoutMixin } from '../mixins/layout';
+1-1
packages/openapi-python/src/py-dsl/index.ts
···11import type { NodeName } from '@hey-api/codegen-core';
2233-import type { py } from '../ts-python';
33+import type { py } from '../py-compiler';
44import { ClassPyDsl } from './decl/class';
55// import { DecoratorPyDsl } from './decl/decorator';
66// import { EnumPyDsl } from './decl/enum';
+1-1
packages/openapi-python/src/py-dsl/layout/doc.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
22import type { MaybeArray } from '@hey-api/types';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
66import type { PyDslContext } from '../utils/context';
77import { ctx } from '../utils/context';
+1-1
packages/openapi-python/src/py-dsl/layout/hint.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
22import type { MaybeArray } from '@hey-api/types';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
66import type { PyDslContext } from '../utils/context';
77import { ctx } from '../utils/context';
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566export class NewlinePyDsl extends PyDsl<py.EmptyStatement> {
+1-1
packages/openapi-python/src/py-dsl/mixins/args.ts
···11import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import type { py } from '../../ts-python';
44+import type { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import type { BaseCtor, MixinCtor } from './types';
77
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import type { BaseCtor, MixinCtor } from './types';
77
+1-1
packages/openapi-python/src/py-dsl/mixins/do.ts
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { StmtPyDsl } from '../stmt/stmt';
66import type { BaseCtor, MixinCtor } from './types';
+1-1
packages/openapi-python/src/py-dsl/mixins/doc.ts
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { DocFn, DocLines } from '../layout/doc';
55import { DocPyDsl } from '../layout/doc';
66import type { BaseCtor, MixinCtor } from './types';
+1-1
packages/openapi-python/src/py-dsl/mixins/expr.ts
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import { f } from '../utils/factories';
55import type { BaseCtor, DropFirst, MixinCtor } from './types';
66
+1-1
packages/openapi-python/src/py-dsl/mixins/hint.ts
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { HintFn, HintLines } from '../layout/hint';
55import { HintPyDsl } from '../layout/hint';
66import type { BaseCtor, MixinCtor } from './types';
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { BaseCtor, MixinCtor } from './types';
5566export interface LayoutMethods extends Node {
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { BaseCtor, MixinCtor } from './types';
5566export type Modifiers = {
···11import type { AnalysisContext, Node, NodeName } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { BinaryPyDsl } from '../expr/binary';
66import type { BaseCtor, MixinCtor } from './types';
···11import type { AnalysisContext, Node } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import type { ParamCtor, ParamFn, ParamName } from '../decl/param';
66import { ParamPyDsl } from '../decl/param';
···11import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import type { py } from '../../ts-python';
44+import type { py } from '../../py-compiler';
55import type { BaseCtor, MixinCtor } from './types';
6677export interface ReturnsMethods extends Node {
···11-import type { py } from '../../ts-python';
11+import type { py } from '../../py-compiler';
22import type { PyDsl } from '../base';
3344export type BaseCtor<T extends py.Node> = abstract new (...args: Array<any>) => PyDsl<T>;
···11import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import type { py } from '../../ts-python';
44+import type { py } from '../../py-compiler';
55import type { PyDsl } from '../base';
66import type { BaseCtor, MixinCtor } from './types';
77
+1-1
packages/openapi-python/src/py-dsl/stmt/block.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
55import type { DoExpr } from '../mixins/do';
66import { DoMixin } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/stmt/break.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566const Mixed = PyDsl<py.BreakStatement>;
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566const Mixed = PyDsl<py.ContinueStatement>;
+1-1
packages/openapi-python/src/py-dsl/stmt/for.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import type { DoExpr } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/stmt/if.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import type { DoExpr } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/stmt/import.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566type ImportName = { alias?: string; name: string };
+1-1
packages/openapi-python/src/py-dsl/stmt/raise.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66// import { LiteralPyDsl } from '../expr/literal';
+1-1
packages/openapi-python/src/py-dsl/stmt/return.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import type { MaybePyDsl } from '../base';
66import { PyDsl } from '../base';
77import { f } from '../utils/factories';
+1-1
packages/openapi-python/src/py-dsl/stmt/stmt.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import { PyDsl } from '../base';
5566const Mixed = PyDsl<py.Statement>;
+1-1
packages/openapi-python/src/py-dsl/stmt/try.ts
···22import { ref } from '@hey-api/codegen-core';
33import type { MaybeArray } from '@hey-api/types';
4455-import { py } from '../../ts-python';
55+import { py } from '../../py-compiler';
66import type { MaybePyDsl } from '../base';
77import { PyDsl } from '../base';
88import type { DoExpr } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/stmt/var.ts
···11import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core';
22import { isSymbol, ref } from '@hey-api/codegen-core';
3344-import { py } from '../../ts-python';
44+import { py } from '../../py-compiler';
55import { PyDsl } from '../base';
66import { ValueMixin } from '../mixins/value';
77import { safeRuntimeName } from '../utils/name';
+1-1
packages/openapi-python/src/py-dsl/stmt/while.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import type { DoExpr } from '../mixins/do';
+1-1
packages/openapi-python/src/py-dsl/stmt/with.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import { py } from '../../ts-python';
33+import { py } from '../../py-compiler';
44import type { MaybePyDsl } from '../base';
55import { PyDsl } from '../base';
66import type { DoExpr } from '../mixins/do';
···33// import { isSymbol } from '@hey-api/codegen-core';
44import type { MaybeFunc } from '@hey-api/types';
5566+import type { py } from '../../py-compiler';
67import type { DollarPyDsl } from '../../py-dsl';
77-import type { py } from '../../ts-python';
88// import { $, PythonRenderer } from '../../py-dsl';
99import type { PyDsl } from '../base';
1010import type { CallArgs } from '../expr/call';
+1-1
packages/openapi-python/src/py-dsl/utils/lazy.ts
···11import type { AnalysisContext } from '@hey-api/codegen-core';
2233-import type { py } from '../../ts-python';
33+import type { py } from '../../py-compiler';
44import { PyDsl } from '../base';
55import type { PyDslContext } from './context';
66import { ctx } from './context';
···11import type { RenderContext, Renderer } from '@hey-api/codegen-core';
22import type { MaybeArray, MaybeFunc } from '@hey-api/types';
3344+import { py } from '../../py-compiler';
45import type { PyDsl } from '../../py-dsl';
55-import { py } from '../../ts-python';
66import type { ModuleExport, ModuleImport, SortGroup, SortKey, SortModule } from './render-utils';
77import { astToString, moduleSortKey } from './render-utils';
88