accept.py 429 B

1234567891011121314
  1. import typing as t
  2. import warnings
  3. class AcceptMixin:
  4. def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
  5. warnings.warn(
  6. "'AcceptMixin' is deprecated and will be removed in"
  7. " Werkzeug 2.1. 'Request' now includes the functionality"
  8. " directly.",
  9. DeprecationWarning,
  10. stacklevel=2,
  11. )
  12. super().__init__(*args, **kwargs) # type: ignore