sopherapps / pydantic-redis

A simple Declarative ORM for Redis using pydantic Models
https://sopherapps.github.io/pydantic-redis
MIT License
40 stars 14 forks source link

[fix] str | None type in from_str_or_bytes_to_any #24

Closed nmarusov closed 8 months ago

nmarusov commented 1 year ago

Incorrect processing from_str_or_bytes_to_any in case of field_type=str | None and value holding real string. Look for str in field_type, return value if such str is present.

Tinitto commented 1 year ago

Niceeeeee! Looks like the tests are failing, though.