We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6674f7f commit fe0441eCopy full SHA for fe0441e
test/test_code_generation/test_models_code_generator.py
@@ -171,7 +171,7 @@ class Test:
171
"f": StringLiteral({'with \\ // slash'}),
172
}),
173
"fields": {
174
- "imports": "from typing_extensions import Literal",
+ "imports": f"{LITERAL_SOURCE} import Literal",
175
"fields": [
176
'a: Literal["basic"]',
177
'b: Literal["with space"]',
@@ -181,8 +181,8 @@ class Test:
181
'f: Literal["with \\\\ // slash"]'
182
]
183
},
184
- "generated": trim("""
185
- from typing_extensions import Literal
+ "generated": trim(f"""
+ {LITERAL_SOURCE} import Literal
186
187
188
class Test:
0 commit comments