Closed mshonichev closed 3 months ago
well, actually, shame on me
I've replaced
from pydantic_yaml.loader import T, parse_yaml_raw_as
to
from pydantic import BaseModel
from pydantic_yaml import parse_yaml_raw_as, to_yaml_str
T = TypeVar("T", bound=BaseModel)
and everything seems to be working just fine, even mypy
check is passed.
I guess issues is not an issue anyway)
After recent changes as of 1.3.0 release, the following
Example:
started failing with the following
Backtrace:
I suppose as
parse_yaml_raw_as
is a generic function, the TypeVar it uses is a part of its public interface.Or is it not?
I'm not sure, can you provide me some hints here?