mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-04-27 17:11:27 +08:00
15ad132393
* Fix stub for werkzeug.exceptions.Aborter and abort * `werkzeug.exceptions.abort` [1] was missing and is thus added here. It's also commonly used in Flask as `flask.abort`. * They both always raise [2], hence the `NoReturn` return type. [1]: http://werkzeug.pocoo.org/docs/0.14/exceptions/#werkzeug.exceptions.abort [2]: https://github.com/pallets/werkzeug/blob/d129d17066768238139b8f8a5d667d9a4f4d68db/werkzeug/exceptions.py#L708-L713 * Fix stub for werkzeug.wrappers.AuthorizationMixin The code [1] uses `@cached_property` [2], which is basically a Python property, and optionally returns an `Authorization` [3] object. [1]: https://github.com/pallets/werkzeug/blob/d129d17066768238139b8f8a5d667d9a4f4d68db/werkzeug/wrappers.py#L1462-L1466 [2]: https://github.com/pallets/werkzeug/blob/d129d17066768238139b8f8a5d667d9a4f4d68db/werkzeug/utils.py#L35 [3]: https://github.com/pallets/werkzeug/blob/d129d17066768238139b8f8a5d667d9a4f4d68db/werkzeug/datastructures.py#L2438