see https://github.com/samuelcolvin/pydantic/issues/2678
see pydantic/pydantic#2678