File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ [[entries ]]
2
+ id = " 8a6d54b8-0898-465a-a34c-6d5b37dab337"
3
+ type = " fix"
4
+ description = " Fix potential `NameError: parameter_map` in `convert_dataclass_to_schema()` (regression introduced in 4.2.6)"
5
+ author = " @NiklasRosenstein"
Original file line number Diff line number Diff line change @@ -205,14 +205,13 @@ class A(Generic[T]):
205
205
fields : t .Dict [str , Field ] = {}
206
206
while queue :
207
207
hint = queue .pop (0 )
208
+ parameter_map = hint .get_parameter_map ()
208
209
209
210
if hint .type in eval_context_by_type :
210
211
# Make sure forward references are resolved.
211
212
hint = hint .evaluate (eval_context_by_type [hint .type ]) # type: ignore[assignment]
212
213
assert isinstance (hint , ClassTypeHint )
213
214
214
- parameter_map = hint .get_parameter_map ()
215
-
216
215
for field in dataclasses .fields (hint .type ):
217
216
if not field .init :
218
217
# If we cannot initialize the field in the constructor, we should also
You can’t perform that action at this time.
0 commit comments