mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
* 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]:d129d17066/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]:d129d17066/werkzeug/wrappers.py (L1462-L1466)[2]:d129d17066/werkzeug/utils.py (L35)[3]:d129d17066/werkzeug/datastructures.py (L2438)