diff --git a/package.json b/package.json index 1142f225b..3f26713a6 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "examples:check": "sh ./scripts/examples-check.sh", "examples:generate": "sh ./scripts/examples-generate.sh", "format": "oxfmt .", - "format:next": "oxfmt . && uv run ruff format packages/openapi-python/src/ts-python/__snapshots__", + "format:next": "oxfmt . && uv run ruff format packages/openapi-python/src/py-compiler/__snapshots__", "lint": "oxfmt --check . && eslint .", - "lint:next": "oxfmt --check . && eslint . && uv run ruff check packages/openapi-python/src/ts-python/__snapshots__", + "lint:next": "oxfmt --check . && eslint . && uv run ruff check packages/openapi-python/src/py-compiler/__snapshots__", "lint:fix": "oxfmt . && eslint . --fix", - "lint:fix:next": "oxfmt . && eslint . --fix && uv run ruff check --fix packages/openapi-python/src/ts-python/__snapshots__", + "lint:fix:next": "oxfmt . && eslint . --fix && uv run ruff check --fix packages/openapi-python/src/py-compiler/__snapshots__", "prepare": "husky", "test:changelog": "vitest run __tests__/*.test.ts", "test:changelog:watch": "vitest watch __tests__/*.test.ts", diff --git a/packages/openapi-python/package.json b/packages/openapi-python/package.json index e1ca22199..ffed63347 100644 --- a/packages/openapi-python/package.json +++ b/packages/openapi-python/package.json @@ -57,7 +57,7 @@ "dev": "tsdown --watch", "prepublishOnly": "pnpm build", "typecheck": "tsgo --noEmit", - "typecheck:next": "tsc --noEmit && uv run mypy src/ts-python/__snapshots__" + "typecheck:next": "tsc --noEmit && uv run mypy src/py-compiler/__snapshots__" }, "dependencies": { "@hey-api/codegen-core": "workspace:*", diff --git a/packages/openapi-python/src/ts-python/__snapshots__/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/default.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/default.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/default.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/default.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-decorators.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-decorators.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-decorators.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-decorators.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-docstring.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-docstring.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-docstring.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-docstring.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-extends.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-extends.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-extends.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-extends.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-method-docstring.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-method-docstring.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-method-docstring.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-method-docstring.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-method.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-method.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/class/with-method.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/class/with-method.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/default.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/default.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/default.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/default.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-annotations-defaults-return.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-annotations-defaults-return.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-annotations-defaults-return.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-annotations-defaults-return.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-body.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-body.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-body.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-body.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-decorators.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-decorators.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-decorators.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-decorators.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-docstring.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-docstring.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/declarations/function/with-docstring.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/declarations/function/with-docstring.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/await/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/await/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/await/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/await/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/await/inside-function.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/await/inside-function.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/await/inside-function.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/await/inside-function.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/add.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/add.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/add.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/add.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/subtract.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/subtract.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/binary/subtract.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/binary/subtract.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/call/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/call/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/call/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/call/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/call/call.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/call/call.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/call/call.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/call/call.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/dict/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/dict/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/dict/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/dict/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/dict/dict.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/dict/dict.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/dict/dict.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/dict/dict.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/list/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/list/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/list/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/list/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/list/list.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/list/list.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/list/list.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/list/list.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/nested/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/nested/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/nested/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/nested/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/nested/dict-list.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/nested/dict-list.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/nested/dict-list.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/nested/dict-list.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/set/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/set/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/set/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/set/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/set/dict.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/set/dict.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/comprehensions/set/dict.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/comprehensions/set/dict.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/dict/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/dict/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/dict/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/dict/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/dict/dict.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/dict/dict.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/dict/dict.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/dict/dict.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/multiple-expressions.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/multiple-expressions.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/multiple-expressions.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/multiple-expressions.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/simple-interpolation.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/simple-interpolation.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/fString/simple-interpolation.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/fString/simple-interpolation.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/async.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/async.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/async.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/async.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/simple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/simple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/simple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/simple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/with-filter.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/with-filter.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/generator/with-filter.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/generator/with-filter.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/identifier/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/identifier/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/identifier/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/identifier/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/identifier/identifier.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/identifier/identifier.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/identifier/identifier.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/identifier/identifier.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/multiple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/multiple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/multiple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/multiple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/number.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/number.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/number.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/number.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/string.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/string.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/kwarg/string.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/kwarg/string.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/simple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/simple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/simple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/simple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/with-params-and-default.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/with-params-and-default.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/lambda/with-params-and-default.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/lambda/with-params-and-default.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/list/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/list/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/list/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/list/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/list/list.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/list/list.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/list/list.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/list/list.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/literal/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/literal/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/literal/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/literal/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/literal/primitive.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/literal/primitive.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/literal/primitive.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/literal/primitive.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/set/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/set/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/set/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/set/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/set/set.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/set/set.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/set/set.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/set/set.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/index-access.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/index-access.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/index-access.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/index-access.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/multiple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/multiple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/multiple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/multiple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/nested.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/nested.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/nested.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/nested.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/single.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/single.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/subscript/single.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/subscript/single.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/tuple/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/tuple/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/tuple/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/tuple/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/tuple/tuple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/tuple/tuple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/tuple/tuple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/tuple/tuple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/default.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/default.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/default.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/default.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/from-iterable.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/from-iterable.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/from-iterable.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/from-iterable.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/with-value.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/with-value.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/expressions/yield/with-value.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/expressions/yield/with-value.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/annotation-only.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/annotation-only.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/annotation-only.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/annotation-only.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/annotation-with-value.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/annotation-with-value.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/annotation-with-value.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/annotation-with-value.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/complex-annotation.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/complex-annotation.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/complex-annotation.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/complex-annotation.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/optional-annotation.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/optional-annotation.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/optional-annotation.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/optional-annotation.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/primitive.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/primitive.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/assignment/primitive.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/assignment/primitive.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/arithmetic.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/arithmetic.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/arithmetic.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/arithmetic.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/bitwise.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/bitwise.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/augmentedAssignment/bitwise.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/augmentedAssignment/bitwise.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/block/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/block/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/block/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/block/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/block/function.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/block/function.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/block/function.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/block/function.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/break/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/break/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/break/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/break/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/break/while.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/break/while.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/break/while.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/break/while.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/continue/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/continue/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/continue/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/continue/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/continue/while.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/continue/while.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/continue/while.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/continue/while.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/expression/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/expression/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/expression/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/expression/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/expression/simple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/expression/simple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/expression/simple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/expression/simple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/for-else.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/for-else.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/for-else.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/for-else.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/for.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/for.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/for/for.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/for/for.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/if-else.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/if-else.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/if-else.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/if-else.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/if.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/if.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/if/if.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/if/if.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-alias.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-alias.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-alias.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-alias.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-asterisk.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-asterisk.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-asterisk.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-asterisk.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-name-alias.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-name-alias.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-name-alias.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-name-alias.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-name.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-name.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/from-with-name.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/from-with-name.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/module-with-alias.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/module-with-alias.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/module-with-alias.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/module-with-alias.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/module.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/module.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/import/module.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/import/module.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/reraise.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/reraise.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/reraise.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/reraise.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/with-exception.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/with-exception.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/raise/with-exception.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/raise/with-exception.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/return/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/return/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/return/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/return/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/return/function.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/return/function.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/return/function.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/return/function.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-else-finally.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-else-finally.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-else-finally.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-else-finally.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-else.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-else.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-else.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-else.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-finally.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-finally.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except-finally.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except-finally.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-except.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-except.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-finally.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-finally.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/try/with-finally.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/try/with-finally.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/while-else.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/while-else.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/while-else.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/while-else.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/while.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/while.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/while/while.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/while/while.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-alias.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-alias.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-alias.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-alias.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-async.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-async.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-async.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-async.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-many-items.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-many-items.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-many-items.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-many-items.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-tuple-alias.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-tuple-alias.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with-tuple-alias.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with-tuple-alias.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/statements/with/with.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/statements/with/with.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/comment/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/comment/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/comment/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/comment/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/comment/simple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/comment/simple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/comment/simple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/comment/simple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/__init__.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/__init__.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/__init__.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/__init__.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/simple.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/simple.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/simple.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/simple.py diff --git a/packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/with-docstring.py b/packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/with-docstring.py similarity index 100% rename from packages/openapi-python/src/ts-python/__snapshots__/nodes/structure/sourceFile/with-docstring.py rename to packages/openapi-python/src/py-compiler/__snapshots__/nodes/structure/sourceFile/with-docstring.py diff --git a/packages/openapi-python/src/ts-python/__tests__/constants.ts b/packages/openapi-python/src/py-compiler/__tests__/constants.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/constants.ts rename to packages/openapi-python/src/py-compiler/__tests__/constants.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/globalTeardown.ts b/packages/openapi-python/src/py-compiler/__tests__/globalTeardown.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/globalTeardown.ts rename to packages/openapi-python/src/py-compiler/__tests__/globalTeardown.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/declarations/class.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/declarations/class.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/declarations/class.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/declarations/class.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/declarations/function.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/declarations/function.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/declarations/function.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/declarations/function.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/await.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/await.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/await.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/await.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/binary.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/binary.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/binary.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/binary.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/call.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/call.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/call.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/call.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/dict.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/dict.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/dict.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/dict.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/list.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/list.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/list.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/list.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/nested.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/nested.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/nested.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/nested.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/set.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/set.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/comprehensions/set.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/comprehensions/set.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/dict.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/dict.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/dict.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/dict.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/fString.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/fString.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/fString.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/fString.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/generator.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/generator.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/generator.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/generator.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/identifier.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/identifier.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/identifier.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/identifier.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/kwarg.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/kwarg.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/kwarg.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/kwarg.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/lambda.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/lambda.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/lambda.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/lambda.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/list.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/list.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/list.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/list.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/literal.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/literal.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/literal.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/literal.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/set.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/set.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/set.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/set.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/subscript.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/subscript.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/subscript.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/subscript.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/tuple.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/tuple.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/tuple.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/tuple.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/expressions/yield.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/yield.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/expressions/yield.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/expressions/yield.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/assignment.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/assignment.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/assignment.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/assignment.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/augmentedAssignment.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/augmentedAssignment.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/augmentedAssignment.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/augmentedAssignment.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/block.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/block.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/block.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/block.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/break.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/break.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/break.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/break.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/continue.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/continue.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/continue.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/continue.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/expression.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/expression.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/expression.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/expression.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/for.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/for.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/for.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/for.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/if.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/if.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/if.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/if.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/import.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/import.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/import.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/import.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/raise.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/raise.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/raise.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/raise.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/return.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/return.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/return.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/return.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/try.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/try.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/try.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/try.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/while.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/while.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/while.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/while.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/statements/with.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/statements/with.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/statements/with.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/statements/with.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/structure/comment.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/structure/comment.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/structure/comment.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/structure/comment.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/structure/sourceFile.test.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/structure/sourceFile.test.ts similarity index 100% rename from packages/openapi-python/src/ts-python/__tests__/nodes/structure/sourceFile.test.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/structure/sourceFile.test.ts diff --git a/packages/openapi-python/src/ts-python/__tests__/nodes/utils.ts b/packages/openapi-python/src/py-compiler/__tests__/nodes/utils.ts similarity index 95% rename from packages/openapi-python/src/ts-python/__tests__/nodes/utils.ts rename to packages/openapi-python/src/py-compiler/__tests__/nodes/utils.ts index b01297bdf..607a44015 100644 --- a/packages/openapi-python/src/ts-python/__tests__/nodes/utils.ts +++ b/packages/openapi-python/src/py-compiler/__tests__/nodes/utils.ts @@ -42,7 +42,7 @@ export async function assertPrintedMatchesSnapshot( const caller = getCallerFile(); const relPath = path - .relative(path.join(process.cwd(), 'src', 'ts-python', '__tests__'), caller) + .relative(path.join(process.cwd(), 'src', 'py-compiler', '__tests__'), caller) .replace(/\.test\.ts$/, ''); const outputPath = path.join(tmpDir, relPath, filename); const outputDir = path.dirname(outputPath); diff --git a/packages/openapi-python/src/ts-python/index.ts b/packages/openapi-python/src/py-compiler/index.ts similarity index 100% rename from packages/openapi-python/src/ts-python/index.ts rename to packages/openapi-python/src/py-compiler/index.ts diff --git a/packages/openapi-python/src/ts-python/nodes/base.ts b/packages/openapi-python/src/py-compiler/nodes/base.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/base.ts rename to packages/openapi-python/src/py-compiler/nodes/base.ts diff --git a/packages/openapi-python/src/ts-python/nodes/comprehension.ts b/packages/openapi-python/src/py-compiler/nodes/comprehension.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/comprehension.ts rename to packages/openapi-python/src/py-compiler/nodes/comprehension.ts diff --git a/packages/openapi-python/src/ts-python/nodes/declarations/class.ts b/packages/openapi-python/src/py-compiler/nodes/declarations/class.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/declarations/class.ts rename to packages/openapi-python/src/py-compiler/nodes/declarations/class.ts diff --git a/packages/openapi-python/src/ts-python/nodes/declarations/function.ts b/packages/openapi-python/src/py-compiler/nodes/declarations/function.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/declarations/function.ts rename to packages/openapi-python/src/py-compiler/nodes/declarations/function.ts diff --git a/packages/openapi-python/src/ts-python/nodes/declarations/functionParameter.ts b/packages/openapi-python/src/py-compiler/nodes/declarations/functionParameter.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/declarations/functionParameter.ts rename to packages/openapi-python/src/py-compiler/nodes/declarations/functionParameter.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expression.ts b/packages/openapi-python/src/py-compiler/nodes/expression.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expression.ts rename to packages/openapi-python/src/py-compiler/nodes/expression.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/async.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/async.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/async.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/async.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/await.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/await.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/await.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/await.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/binary.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/binary.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/binary.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/binary.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/call.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/call.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/call.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/call.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/dict.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/dict.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/dict.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/dict.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/list.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/list.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/list.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/list.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/set.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/set.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/comprehensions/set.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/comprehensions/set.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/dict.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/dict.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/dict.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/dict.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/fString.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/fString.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/fString.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/fString.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/generator.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/generator.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/generator.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/generator.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/identifier.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/identifier.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/identifier.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/identifier.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/keywordArg.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/keywordArg.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/keywordArg.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/keywordArg.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/lambda.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/lambda.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/lambda.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/lambda.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/list.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/list.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/list.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/list.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/literal.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/literal.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/literal.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/literal.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/member.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/member.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/member.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/member.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/set.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/set.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/set.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/set.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/subscript-slice.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/subscript-slice.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/subscript-slice.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/subscript-slice.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/subscript.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/subscript.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/subscript.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/subscript.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/tuple.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/tuple.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/tuple.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/tuple.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/yield.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/yield.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/yield.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/yield.ts diff --git a/packages/openapi-python/src/ts-python/nodes/expressions/yieldFrom.ts b/packages/openapi-python/src/py-compiler/nodes/expressions/yieldFrom.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/expressions/yieldFrom.ts rename to packages/openapi-python/src/py-compiler/nodes/expressions/yieldFrom.ts diff --git a/packages/openapi-python/src/ts-python/nodes/factory.ts b/packages/openapi-python/src/py-compiler/nodes/factory.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/factory.ts rename to packages/openapi-python/src/py-compiler/nodes/factory.ts diff --git a/packages/openapi-python/src/ts-python/nodes/kinds.ts b/packages/openapi-python/src/py-compiler/nodes/kinds.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/kinds.ts rename to packages/openapi-python/src/py-compiler/nodes/kinds.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statement.ts b/packages/openapi-python/src/py-compiler/nodes/statement.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statement.ts rename to packages/openapi-python/src/py-compiler/nodes/statement.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/assignment.ts b/packages/openapi-python/src/py-compiler/nodes/statements/assignment.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/assignment.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/assignment.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/augmentedAssignment.ts b/packages/openapi-python/src/py-compiler/nodes/statements/augmentedAssignment.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/augmentedAssignment.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/augmentedAssignment.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/block.ts b/packages/openapi-python/src/py-compiler/nodes/statements/block.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/block.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/block.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/break.ts b/packages/openapi-python/src/py-compiler/nodes/statements/break.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/break.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/break.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/continue.ts b/packages/openapi-python/src/py-compiler/nodes/statements/continue.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/continue.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/continue.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/empty.ts b/packages/openapi-python/src/py-compiler/nodes/statements/empty.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/empty.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/empty.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/except.ts b/packages/openapi-python/src/py-compiler/nodes/statements/except.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/except.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/except.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/expression.ts b/packages/openapi-python/src/py-compiler/nodes/statements/expression.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/expression.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/expression.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/for.ts b/packages/openapi-python/src/py-compiler/nodes/statements/for.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/for.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/for.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/if.ts b/packages/openapi-python/src/py-compiler/nodes/statements/if.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/if.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/if.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/import.ts b/packages/openapi-python/src/py-compiler/nodes/statements/import.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/import.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/import.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/raise.ts b/packages/openapi-python/src/py-compiler/nodes/statements/raise.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/raise.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/raise.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/return.ts b/packages/openapi-python/src/py-compiler/nodes/statements/return.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/return.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/return.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/try.ts b/packages/openapi-python/src/py-compiler/nodes/statements/try.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/try.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/try.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/while.ts b/packages/openapi-python/src/py-compiler/nodes/statements/while.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/while.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/while.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/with.ts b/packages/openapi-python/src/py-compiler/nodes/statements/with.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/with.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/with.ts diff --git a/packages/openapi-python/src/ts-python/nodes/statements/withItem.ts b/packages/openapi-python/src/py-compiler/nodes/statements/withItem.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/statements/withItem.ts rename to packages/openapi-python/src/py-compiler/nodes/statements/withItem.ts diff --git a/packages/openapi-python/src/ts-python/nodes/structure/comment.ts b/packages/openapi-python/src/py-compiler/nodes/structure/comment.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/structure/comment.ts rename to packages/openapi-python/src/py-compiler/nodes/structure/comment.ts diff --git a/packages/openapi-python/src/ts-python/nodes/structure/sourceFile.ts b/packages/openapi-python/src/py-compiler/nodes/structure/sourceFile.ts similarity index 100% rename from packages/openapi-python/src/ts-python/nodes/structure/sourceFile.ts rename to packages/openapi-python/src/py-compiler/nodes/structure/sourceFile.ts diff --git a/packages/openapi-python/src/ts-python/printer.ts b/packages/openapi-python/src/py-compiler/printer.ts similarity index 100% rename from packages/openapi-python/src/ts-python/printer.ts rename to packages/openapi-python/src/py-compiler/printer.ts diff --git a/packages/openapi-python/src/py-dsl/base.ts b/packages/openapi-python/src/py-dsl/base.ts index 58e92362e..bd06f0ff0 100644 --- a/packages/openapi-python/src/py-dsl/base.ts +++ b/packages/openapi-python/src/py-dsl/base.ts @@ -15,7 +15,7 @@ import type { import { fromRef, isNode, isRef, isSymbol, nodeBrand, ref } from '@hey-api/codegen-core'; import type { AnyString } from '@hey-api/types'; -import { py } from '../ts-python'; +import { py } from '../py-compiler'; import type { AccessOptions } from './utils/context'; export abstract class PyDsl implements Node { diff --git a/packages/openapi-python/src/py-dsl/decl/class.ts b/packages/openapi-python/src/py-dsl/decl/class.ts index 381840fc6..2c36dccd9 100644 --- a/packages/openapi-python/src/py-dsl/decl/class.ts +++ b/packages/openapi-python/src/py-dsl/decl/class.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { isSymbol, ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { type MaybePyDsl, PyDsl } from '../base'; import { NewlinePyDsl } from '../layout/newline'; import { DecoratorMixin } from '../mixins/decorator'; diff --git a/packages/openapi-python/src/py-dsl/decl/func.ts b/packages/openapi-python/src/py-dsl/decl/func.ts index 66d08769c..ece6e5e88 100644 --- a/packages/openapi-python/src/py-dsl/decl/func.ts +++ b/packages/openapi-python/src/py-dsl/decl/func.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, NodeNameSanitizer } from '@hey-api/codegen-core'; import { isSymbol } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import { DecoratorMixin } from '../mixins/decorator'; import { DoMixin } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/decl/param.ts b/packages/openapi-python/src/py-dsl/decl/param.ts index f91ce9f42..9637d0b05 100644 --- a/packages/openapi-python/src/py-dsl/decl/param.ts +++ b/packages/openapi-python/src/py-dsl/decl/param.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; export type ParamDefaultValue = NodeName | py.Expression | undefined; diff --git a/packages/openapi-python/src/py-dsl/expr/attr.ts b/packages/openapi-python/src/py-dsl/expr/attr.ts index 6ca485966..fb90ce285 100644 --- a/packages/openapi-python/src/py-dsl/expr/attr.ts +++ b/packages/openapi-python/src/py-dsl/expr/attr.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { fromRef, isSymbol, ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { ExprMixin } from '../mixins/expr'; diff --git a/packages/openapi-python/src/py-dsl/expr/binary.ts b/packages/openapi-python/src/py-dsl/expr/binary.ts index a4a6e5b6a..d73828b48 100644 --- a/packages/openapi-python/src/py-dsl/expr/binary.ts +++ b/packages/openapi-python/src/py-dsl/expr/binary.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; diff --git a/packages/openapi-python/src/py-dsl/expr/call.ts b/packages/openapi-python/src/py-dsl/expr/call.ts index 2f233d789..3ef051ad9 100644 --- a/packages/openapi-python/src/py-dsl/expr/call.ts +++ b/packages/openapi-python/src/py-dsl/expr/call.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { ArgsMixin } from '../mixins/args'; diff --git a/packages/openapi-python/src/py-dsl/expr/dict.ts b/packages/openapi-python/src/py-dsl/expr/dict.ts index 8ea642da5..b6e02dabf 100644 --- a/packages/openapi-python/src/py-dsl/expr/dict.ts +++ b/packages/openapi-python/src/py-dsl/expr/dict.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { LayoutMixin } from '../mixins/layout'; diff --git a/packages/openapi-python/src/py-dsl/expr/expr.ts b/packages/openapi-python/src/py-dsl/expr/expr.ts index 6bbf844dc..919b1af0e 100644 --- a/packages/openapi-python/src/py-dsl/expr/expr.ts +++ b/packages/openapi-python/src/py-dsl/expr/expr.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { isNode, isSymbol, ref } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { ExprMixin } from '../mixins/expr'; diff --git a/packages/openapi-python/src/py-dsl/expr/identifier.ts b/packages/openapi-python/src/py-dsl/expr/identifier.ts index 0fc53ca84..2360d26f6 100644 --- a/packages/openapi-python/src/py-dsl/expr/identifier.ts +++ b/packages/openapi-python/src/py-dsl/expr/identifier.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, NodeName } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; const Mixed = PyDsl; diff --git a/packages/openapi-python/src/py-dsl/expr/kwarg.ts b/packages/openapi-python/src/py-dsl/expr/kwarg.ts index ca5e1bdfb..703b33cff 100644 --- a/packages/openapi-python/src/py-dsl/expr/kwarg.ts +++ b/packages/openapi-python/src/py-dsl/expr/kwarg.ts @@ -1,6 +1,6 @@ import type { NodeName } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; diff --git a/packages/openapi-python/src/py-dsl/expr/list.ts b/packages/openapi-python/src/py-dsl/expr/list.ts index dea32265f..d810ca1b2 100644 --- a/packages/openapi-python/src/py-dsl/expr/list.ts +++ b/packages/openapi-python/src/py-dsl/expr/list.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { LayoutMixin } from '../mixins/layout'; diff --git a/packages/openapi-python/src/py-dsl/expr/literal.ts b/packages/openapi-python/src/py-dsl/expr/literal.ts index adddd22cf..78fe29b14 100644 --- a/packages/openapi-python/src/py-dsl/expr/literal.ts +++ b/packages/openapi-python/src/py-dsl/expr/literal.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; export type LiteralValue = string | number | boolean | null; diff --git a/packages/openapi-python/src/py-dsl/expr/set.ts b/packages/openapi-python/src/py-dsl/expr/set.ts index d506aa38f..0be87c404 100644 --- a/packages/openapi-python/src/py-dsl/expr/set.ts +++ b/packages/openapi-python/src/py-dsl/expr/set.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { LayoutMixin } from '../mixins/layout'; diff --git a/packages/openapi-python/src/py-dsl/expr/subscript.ts b/packages/openapi-python/src/py-dsl/expr/subscript.ts index 4f2cc5234..4fc561d66 100644 --- a/packages/openapi-python/src/py-dsl/expr/subscript.ts +++ b/packages/openapi-python/src/py-dsl/expr/subscript.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import { LayoutMixin } from '../mixins/layout'; import { f } from '../utils/factories'; diff --git a/packages/openapi-python/src/py-dsl/expr/tuple.ts b/packages/openapi-python/src/py-dsl/expr/tuple.ts index 2db15b145..4850cd0a5 100644 --- a/packages/openapi-python/src/py-dsl/expr/tuple.ts +++ b/packages/openapi-python/src/py-dsl/expr/tuple.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { LayoutMixin } from '../mixins/layout'; diff --git a/packages/openapi-python/src/py-dsl/index.ts b/packages/openapi-python/src/py-dsl/index.ts index fa00f201a..179da969c 100644 --- a/packages/openapi-python/src/py-dsl/index.ts +++ b/packages/openapi-python/src/py-dsl/index.ts @@ -1,6 +1,6 @@ import type { NodeName } from '@hey-api/codegen-core'; -import type { py } from '../ts-python'; +import type { py } from '../py-compiler'; import { ClassPyDsl } from './decl/class'; // import { DecoratorPyDsl } from './decl/decorator'; // import { EnumPyDsl } from './decl/enum'; diff --git a/packages/openapi-python/src/py-dsl/layout/doc.ts b/packages/openapi-python/src/py-dsl/layout/doc.ts index 79666da1d..5477ca3e7 100644 --- a/packages/openapi-python/src/py-dsl/layout/doc.ts +++ b/packages/openapi-python/src/py-dsl/layout/doc.ts @@ -1,7 +1,7 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; import type { MaybeArray } from '@hey-api/types'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import type { PyDslContext } from '../utils/context'; import { ctx } from '../utils/context'; diff --git a/packages/openapi-python/src/py-dsl/layout/hint.ts b/packages/openapi-python/src/py-dsl/layout/hint.ts index f8924a22c..d748d35ab 100644 --- a/packages/openapi-python/src/py-dsl/layout/hint.ts +++ b/packages/openapi-python/src/py-dsl/layout/hint.ts @@ -1,7 +1,7 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; import type { MaybeArray } from '@hey-api/types'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import type { PyDslContext } from '../utils/context'; import { ctx } from '../utils/context'; diff --git a/packages/openapi-python/src/py-dsl/layout/newline.ts b/packages/openapi-python/src/py-dsl/layout/newline.ts index b2562b5ac..9bae41fcf 100644 --- a/packages/openapi-python/src/py-dsl/layout/newline.ts +++ b/packages/openapi-python/src/py-dsl/layout/newline.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; export class NewlinePyDsl extends PyDsl { diff --git a/packages/openapi-python/src/py-dsl/mixins/args.ts b/packages/openapi-python/src/py-dsl/mixins/args.ts index b25805313..e2a116d70 100644 --- a/packages/openapi-python/src/py-dsl/mixins/args.ts +++ b/packages/openapi-python/src/py-dsl/mixins/args.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/decorator.ts b/packages/openapi-python/src/py-dsl/mixins/decorator.ts index fd2b7a600..606f138dc 100644 --- a/packages/openapi-python/src/py-dsl/mixins/decorator.ts +++ b/packages/openapi-python/src/py-dsl/mixins/decorator.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/do.ts b/packages/openapi-python/src/py-dsl/mixins/do.ts index b5cb409bf..63cb5bda4 100644 --- a/packages/openapi-python/src/py-dsl/mixins/do.ts +++ b/packages/openapi-python/src/py-dsl/mixins/do.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { StmtPyDsl } from '../stmt/stmt'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/doc.ts b/packages/openapi-python/src/py-dsl/mixins/doc.ts index cae48bb9e..146af639b 100644 --- a/packages/openapi-python/src/py-dsl/mixins/doc.ts +++ b/packages/openapi-python/src/py-dsl/mixins/doc.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { DocFn, DocLines } from '../layout/doc'; import { DocPyDsl } from '../layout/doc'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/expr.ts b/packages/openapi-python/src/py-dsl/mixins/expr.ts index 3fc53f28d..1810a9919 100644 --- a/packages/openapi-python/src/py-dsl/mixins/expr.ts +++ b/packages/openapi-python/src/py-dsl/mixins/expr.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import { f } from '../utils/factories'; import type { BaseCtor, DropFirst, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/hint.ts b/packages/openapi-python/src/py-dsl/mixins/hint.ts index ba0c23020..80a340f42 100644 --- a/packages/openapi-python/src/py-dsl/mixins/hint.ts +++ b/packages/openapi-python/src/py-dsl/mixins/hint.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { HintFn, HintLines } from '../layout/hint'; import { HintPyDsl } from '../layout/hint'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/layout.ts b/packages/openapi-python/src/py-dsl/mixins/layout.ts index dfc68c149..683493ef5 100644 --- a/packages/openapi-python/src/py-dsl/mixins/layout.ts +++ b/packages/openapi-python/src/py-dsl/mixins/layout.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { BaseCtor, MixinCtor } from './types'; export interface LayoutMethods extends Node { diff --git a/packages/openapi-python/src/py-dsl/mixins/modifiers.ts b/packages/openapi-python/src/py-dsl/mixins/modifiers.ts index 11be78cc3..ca07bae19 100644 --- a/packages/openapi-python/src/py-dsl/mixins/modifiers.ts +++ b/packages/openapi-python/src/py-dsl/mixins/modifiers.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { BaseCtor, MixinCtor } from './types'; export type Modifiers = { diff --git a/packages/openapi-python/src/py-dsl/mixins/operator.ts b/packages/openapi-python/src/py-dsl/mixins/operator.ts index 64bdf4aab..faa9913ab 100644 --- a/packages/openapi-python/src/py-dsl/mixins/operator.ts +++ b/packages/openapi-python/src/py-dsl/mixins/operator.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node, NodeName } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { BinaryPyDsl } from '../expr/binary'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/mixins/param.ts b/packages/openapi-python/src/py-dsl/mixins/param.ts index 098d43e1d..9aa496dfa 100644 --- a/packages/openapi-python/src/py-dsl/mixins/param.ts +++ b/packages/openapi-python/src/py-dsl/mixins/param.ts @@ -1,6 +1,6 @@ import type { AnalysisContext, Node } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import type { ParamCtor, ParamFn, ParamName } from '../decl/param'; import { ParamPyDsl } from '../decl/param'; diff --git a/packages/openapi-python/src/py-dsl/mixins/returns.ts b/packages/openapi-python/src/py-dsl/mixins/returns.ts index 419e88f3a..461d1e715 100644 --- a/packages/openapi-python/src/py-dsl/mixins/returns.ts +++ b/packages/openapi-python/src/py-dsl/mixins/returns.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { BaseCtor, MixinCtor } from './types'; export interface ReturnsMethods extends Node { diff --git a/packages/openapi-python/src/py-dsl/mixins/types.ts b/packages/openapi-python/src/py-dsl/mixins/types.ts index 4964c57ae..c767333dc 100644 --- a/packages/openapi-python/src/py-dsl/mixins/types.ts +++ b/packages/openapi-python/src/py-dsl/mixins/types.ts @@ -1,4 +1,4 @@ -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { PyDsl } from '../base'; export type BaseCtor = abstract new (...args: Array) => PyDsl; diff --git a/packages/openapi-python/src/py-dsl/mixins/value.ts b/packages/openapi-python/src/py-dsl/mixins/value.ts index 605471482..747dcba94 100644 --- a/packages/openapi-python/src/py-dsl/mixins/value.ts +++ b/packages/openapi-python/src/py-dsl/mixins/value.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, Node, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import type { PyDsl } from '../base'; import type { BaseCtor, MixinCtor } from './types'; diff --git a/packages/openapi-python/src/py-dsl/stmt/block.ts b/packages/openapi-python/src/py-dsl/stmt/block.ts index ed8f8f3bd..2c97685d6 100644 --- a/packages/openapi-python/src/py-dsl/stmt/block.ts +++ b/packages/openapi-python/src/py-dsl/stmt/block.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; import { DoMixin } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/stmt/break.ts b/packages/openapi-python/src/py-dsl/stmt/break.ts index 55d39f29f..147332de1 100644 --- a/packages/openapi-python/src/py-dsl/stmt/break.ts +++ b/packages/openapi-python/src/py-dsl/stmt/break.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; const Mixed = PyDsl; diff --git a/packages/openapi-python/src/py-dsl/stmt/continue.ts b/packages/openapi-python/src/py-dsl/stmt/continue.ts index 3913c681c..0804fc1d8 100644 --- a/packages/openapi-python/src/py-dsl/stmt/continue.ts +++ b/packages/openapi-python/src/py-dsl/stmt/continue.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; const Mixed = PyDsl; diff --git a/packages/openapi-python/src/py-dsl/stmt/for.ts b/packages/openapi-python/src/py-dsl/stmt/for.ts index 7c6873eea..126c514aa 100644 --- a/packages/openapi-python/src/py-dsl/stmt/for.ts +++ b/packages/openapi-python/src/py-dsl/stmt/for.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/stmt/if.ts b/packages/openapi-python/src/py-dsl/stmt/if.ts index 608edd4ea..33e6c2e3f 100644 --- a/packages/openapi-python/src/py-dsl/stmt/if.ts +++ b/packages/openapi-python/src/py-dsl/stmt/if.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/stmt/import.ts b/packages/openapi-python/src/py-dsl/stmt/import.ts index 330935968..b9d62076f 100644 --- a/packages/openapi-python/src/py-dsl/stmt/import.ts +++ b/packages/openapi-python/src/py-dsl/stmt/import.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; type ImportName = { alias?: string; name: string }; diff --git a/packages/openapi-python/src/py-dsl/stmt/raise.ts b/packages/openapi-python/src/py-dsl/stmt/raise.ts index 15257540b..ae132b652 100644 --- a/packages/openapi-python/src/py-dsl/stmt/raise.ts +++ b/packages/openapi-python/src/py-dsl/stmt/raise.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; // import { LiteralPyDsl } from '../expr/literal'; diff --git a/packages/openapi-python/src/py-dsl/stmt/return.ts b/packages/openapi-python/src/py-dsl/stmt/return.ts index 41a0eac0d..7b6ce2231 100644 --- a/packages/openapi-python/src/py-dsl/stmt/return.ts +++ b/packages/openapi-python/src/py-dsl/stmt/return.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import { f } from '../utils/factories'; diff --git a/packages/openapi-python/src/py-dsl/stmt/stmt.ts b/packages/openapi-python/src/py-dsl/stmt/stmt.ts index 1830f8903..8aaac8e59 100644 --- a/packages/openapi-python/src/py-dsl/stmt/stmt.ts +++ b/packages/openapi-python/src/py-dsl/stmt/stmt.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; const Mixed = PyDsl; diff --git a/packages/openapi-python/src/py-dsl/stmt/try.ts b/packages/openapi-python/src/py-dsl/stmt/try.ts index 1f9b771ee..6646d5803 100644 --- a/packages/openapi-python/src/py-dsl/stmt/try.ts +++ b/packages/openapi-python/src/py-dsl/stmt/try.ts @@ -2,7 +2,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { ref } from '@hey-api/codegen-core'; import type { MaybeArray } from '@hey-api/types'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/stmt/var.ts b/packages/openapi-python/src/py-dsl/stmt/var.ts index 49cd7ca07..aaefdda29 100644 --- a/packages/openapi-python/src/py-dsl/stmt/var.ts +++ b/packages/openapi-python/src/py-dsl/stmt/var.ts @@ -1,7 +1,7 @@ import type { AnalysisContext, NodeName, Ref } from '@hey-api/codegen-core'; import { isSymbol, ref } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import { PyDsl } from '../base'; import { ValueMixin } from '../mixins/value'; import { safeRuntimeName } from '../utils/name'; diff --git a/packages/openapi-python/src/py-dsl/stmt/while.ts b/packages/openapi-python/src/py-dsl/stmt/while.ts index 5649c7c5e..8f89ec926 100644 --- a/packages/openapi-python/src/py-dsl/stmt/while.ts +++ b/packages/openapi-python/src/py-dsl/stmt/while.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/stmt/with.ts b/packages/openapi-python/src/py-dsl/stmt/with.ts index d2fbe571d..7c5cfb50a 100644 --- a/packages/openapi-python/src/py-dsl/stmt/with.ts +++ b/packages/openapi-python/src/py-dsl/stmt/with.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; import type { MaybePyDsl } from '../base'; import { PyDsl } from '../base'; import type { DoExpr } from '../mixins/do'; diff --git a/packages/openapi-python/src/py-dsl/utils/context.ts b/packages/openapi-python/src/py-dsl/utils/context.ts index 406ae8cc1..dfb1651b8 100644 --- a/packages/openapi-python/src/py-dsl/utils/context.ts +++ b/packages/openapi-python/src/py-dsl/utils/context.ts @@ -3,8 +3,8 @@ import type { BindingKind } from '@hey-api/codegen-core'; // import { isSymbol } from '@hey-api/codegen-core'; import type { MaybeFunc } from '@hey-api/types'; +import type { py } from '../../py-compiler'; import type { DollarPyDsl } from '../../py-dsl'; -import type { py } from '../../ts-python'; // import { $, PythonRenderer } from '../../py-dsl'; import type { PyDsl } from '../base'; import type { CallArgs } from '../expr/call'; diff --git a/packages/openapi-python/src/py-dsl/utils/lazy.ts b/packages/openapi-python/src/py-dsl/utils/lazy.ts index 28e21a073..2d86eb339 100644 --- a/packages/openapi-python/src/py-dsl/utils/lazy.ts +++ b/packages/openapi-python/src/py-dsl/utils/lazy.ts @@ -1,6 +1,6 @@ import type { AnalysisContext } from '@hey-api/codegen-core'; -import type { py } from '../../ts-python'; +import type { py } from '../../py-compiler'; import { PyDsl } from '../base'; import type { PyDslContext } from './context'; import { ctx } from './context'; diff --git a/packages/openapi-python/src/py-dsl/utils/render-utils.ts b/packages/openapi-python/src/py-dsl/utils/render-utils.ts index 70def1801..2d1d511f7 100644 --- a/packages/openapi-python/src/py-dsl/utils/render-utils.ts +++ b/packages/openapi-python/src/py-dsl/utils/render-utils.ts @@ -2,7 +2,7 @@ import path from 'node:path'; import type { ExportModule, File, ImportModule } from '@hey-api/codegen-core'; -import { py } from '../../ts-python'; +import { py } from '../../py-compiler'; const printer = py.createPrinter({ indentSize: 4, diff --git a/packages/openapi-python/src/py-dsl/utils/render.ts b/packages/openapi-python/src/py-dsl/utils/render.ts index 623f92819..943c54d9d 100644 --- a/packages/openapi-python/src/py-dsl/utils/render.ts +++ b/packages/openapi-python/src/py-dsl/utils/render.ts @@ -1,8 +1,8 @@ import type { RenderContext, Renderer } from '@hey-api/codegen-core'; import type { MaybeArray, MaybeFunc } from '@hey-api/types'; +import { py } from '../../py-compiler'; import type { PyDsl } from '../../py-dsl'; -import { py } from '../../ts-python'; import type { ModuleExport, ModuleImport, SortGroup, SortKey, SortModule } from './render-utils'; import { astToString, moduleSortKey } from './render-utils';