Skip to content

Commit d4a325a

Browse files
committed
Fix CI failures: TS type annotation and generated file style
- Add explicit type for `item` parameter in getTemplateTags .map() to fix TS7006 error in CLI build - Rewrite generated Python files to match CI's openapi-python-client output style (Union/Optional syntax, f-strings, no __future__ import)
1 parent a93b17b commit d4a325a

3 files changed

Lines changed: 16 additions & 26 deletions

File tree

packages/js-sdk/src/template/buildApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiClient, handleApiError, paths } from '../api'
1+
import { ApiClient, handleApiError, paths, components } from '../api'
22
import { stripAnsi } from '../utils'
33
import { BuildError, FileUploadError, TemplateError } from '../errors'
44
import { LogEntry } from './logger'
@@ -381,7 +381,7 @@ export async function getTemplateTags(
381381
throw new TemplateError('Failed to get template tags')
382382
}
383383

384-
return res.data.map((item) => ({
384+
return res.data.map((item: components['schemas']['TemplateTag']) => ({
385385
tag: item.tag,
386386
buildId: item.buildID,
387387
createdAt: new Date(item.createdAt),

packages/python-sdk/e2b/api/client/api/tags/get_templates_template_id_tags.py

Lines changed: 14 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/python-sdk/e2b/api/client/models/template_tag.py

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)