Skip to content

Commit b24fcac

Browse files
committed
fix: add __future__.annotations to model declarations
1 parent dc7c625 commit b24fcac

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

python_client_generator/templates/models.py.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from datetime import datetime
24
from enum import Enum
35
from typing import Any, Dict, List, Literal, Optional, Union

tests/expected/fastapi_app_client/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from datetime import datetime
24
from enum import Enum
35
from typing import Any, Dict, List, Literal, Optional, Union

tests/expected/swagger_petstore_client/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from datetime import datetime
24
from enum import Enum
35
from typing import Any, Dict, List, Literal, Optional, Union

0 commit comments

Comments
 (0)