Closed guacs closed 8 months ago
Failed conditions
91.7% Coverage on New Code (required ≥ 98%)
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/499
I think the sonar code coverage issue can be ignored since the missing coverage is for the 3.8 specific code.
Description
NoneType
. This makes the change the same as that ofFieldMeta.from_type
(as changed in #491).FieldMeta.from-type
by using the actual type that is annotated rather thanAnnotated[type, ...]
FieldMeta.type_args
in #491,Annotated[List[str], MinLen(10)]
now returnsList[str]
whereas before it would have returnedstr
as the child. This results in the children for theFieldMeta
corresponding to the annotationAnnotated[List[str], MinLen(10)]
to beList[str]
instead ofstr
. Unwrapping the annotation to get the actual underlying type fixes this problem since nowFieldMeta.type_args
will returnstr
in this case instead ofList[str]
.Close Issue(s)