mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
af26f7f181
* Fix issue with unspecified generic type, fix #550 Seems to solve #550 With this change, models with bare `List` or `Dict` as a typehint still validate for type agreement, but don't validate the type of the parameters. I'm not sure this is the "right" fix (I don't know the implications of ignoring TypeVars like this), but considering how simple it was I figured I'd at least share. * Update validators.py Found this discussion: https://github.com/samuelcolvin/pydantic/issues/545; `lenient_issubclass` does seem to fix it. * Update validators.py Hacky solution to prevent no validator exception. Maybe there's a better way? * Tests pass and PR checklist done * Check sooner * Block empty list from dict constructor * Removed modifications to dict_validator