In docstring and in documentation page, we have target (str | list[str] | None). But using target = None when creating a Sample object gives validation error. Presumbly because in the code, None is not a possible type: target: str | list[str] = Field(default="")
In docstring and in documentation page, we have
target (str | list[str] | None)
. But usingtarget = None
when creating aSample
object gives validation error. Presumbly because in the code,None
is not a possible type:target: str | list[str] = Field(default="")