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 281a42a commit dde24f7Copy full SHA for dde24f7
1 file changed
confection/_registry.py
@@ -268,7 +268,11 @@ def _make_unresolved_schema(
268
)
269
elif field.annotation is None:
270
fields[name] = (Any, Field(field.default))
271
- elif issubclass(field.annotation, BaseModel):
+ elif (
272
+ # On Python 3.10, typing.* objects were not classes
273
+ isinstance(field.annotation, type)
274
+ and issubclass(field.annotation, BaseModel)
275
+ ):
276
fields[name] = cls._make_unresolved_schema(
277
field.annotation, config[name]
278
0 commit comments