File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import extism # pyright: ignore
44import plugin
5+
6+ <% if (Object .values (schema .schemas ).length > 0 ){ % >
57from pdk_types import <%- Object.values(schema.schemas).map(schema => schema.name).join(" , " ) %> # noqa: F401
8+ < % } %>
69
710# Imports
811
Original file line number Diff line number Diff line change 11# THIS FILE WAS GENERATED BY `xtp-python-bindgen`. DO NOT EDIT.
22
33import extism # noqa: F401 # pyright: ignore
4+
5+ <% if (Object .values (schema .schemas ).length > 0 ) { % >
46from pdk_types import <%- Object.values(schema.schemas).map(schema => schema.name).join(" , " ) %> # noqa: F401
7+ < % } %>
58
69<% schema .imports .forEach (imp => { % >
710< % if (hasComment (imp)) -% >
Original file line number Diff line number Diff line change 11import extism # noqa: F401 # pyright: ignore
2+ <% if (Object .values (schema .schemas ).length > 0 ) { % >
23from pdk_types import <%- Object.values(schema.schemas).map(schema => schema.name).join(" , " ) %> # noqa: F401
4+ < % } %>
5+ <% if (schema .imports .length > 0 ) { % >
36from pdk_imports import <%- schema.imports.map(schema => camelToSnakeCase(schema.name)).join(" , " ) %> # noqa: F401
7+ < % } %>
48from typing import List, Optional # noqa: F401
59
610<% schema .exports .forEach (ex => { -% >
You can’t perform that action at this time.
0 commit comments