Nuno André
Nuno André
Multiple `Transfer-Encoding` headers are explicitly forbidden in [specs](https://datatracker.ietf.org/doc/html/rfc7230). But browsers, and many libraries, accept them; so this is a case that we may have to deal with at some point....
@logan-vitelity This is actually [an `h11` issue](https://github.com/python-hyper/h11/issues/113). It seems that they are open to loose the restriction, but for the time being, there are no changes. At the moment the...
I agree with the _private by default_ behavior, but mangling the sunder attributes once they have been set up as private involves some issues such as losing the type annotations...
That would be great :) Some ideas FWIW: - Enable `validate_assignment` for private attributes. Type annotation is currently erased in `PrivateAttr`, could `Annotated(, PrivateAttr)` be a valid approach? - If...
FWIW: I've found a similar error that it resolved setting the env var `TZ=UTC`. Also, if I set this through `os.environ['TZ'] = 'UTC'`, instead of checking the fire time every...
@daniil-berg In my opinion, the goal of SQLModel is not to replicate SQLAlchemy with a Pydantic syntax, but to add persistence to Pydantic models. Under this point of view, the...
Maybe this implementation should emit a `DeprecationWarning` on the model's instantiation. This warning is [_ignored by default, unless triggered by code in `__main__`_](https://docs.python.org/3/library/warnings.html), so it wouldn't modify the common behavior...
@dmontagu There's an open PEP ([PEP 702](https://peps.python.org/pep-0702/)) to marking deprecations using `@typing.deprecated`, which adds a `DeprecationWarning` to classes and functions/methods and sets a `__deprecated__` attribute with the deprecation message. (It...
Glad to hear you will follow this pattern if the PEP is accepted :) And yes, it makes perfect sense to wait for the acceptance of the PEP before making...
How would validators behave in this case? E.g. ```python class Model(BaseModel): prop_a: int class Config: extra_pattern = {r'^prop_': str} @validator(r'^prop_') def validate_props(cls, v) -> str: return v.upper() ```