Skip to content

Commit b3fe735

Browse files
committed
Reapply "fix(typegen): python type missing uuid import (#1027)"
This reverts commit 0d74cdc.
1 parent b1b9925 commit b3fe735

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/server/templates/python.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const apply = ({
3434
from __future__ import annotations
3535
3636
import datetime
37+
import uuid
3738
from typing import (
3839
Annotated,
3940
Any,

test/server/typegen.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6437,17 +6437,18 @@ test('typegen: python', async () => {
64376437
expect(body).toMatchInlineSnapshot(`
64386438
"from __future__ import annotations
64396439
6440-
import datetime
6441-
from typing import (
6442-
Annotated,
6443-
Any,
6444-
List,
6445-
Literal,
6446-
NotRequired,
6447-
Optional,
6448-
TypeAlias,
6449-
TypedDict,
6450-
)
6440+
import datetime
6441+
import uuid
6442+
from typing import (
6443+
Annotated,
6444+
Any,
6445+
List,
6446+
Literal,
6447+
NotRequired,
6448+
Optional,
6449+
TypeAlias,
6450+
TypedDict,
6451+
)
64516452
64526453
from pydantic import BaseModel, Field, Json
64536454

0 commit comments

Comments
 (0)