Skip to main content

Mypy plugin and stubs for Flask-HTTPAuth

Project description

PyPI version Code on Github Code style: black GitHub last commit


Add types for Flask-HTTPAuth for mypy.


$ pip install flask-httpauth-stubs


Mypy will automatically use the type annotations in this package, once it is installed. You just need to annotate your code:

from typing import Optional
from flask_httpauth import HTTPAuth, Authorization

def foo(bar: HTTPAuth) -> Optional[Authorization]:
    return bar.get_auth()

For general hints how to use type annotations, please read Type Annotations in Python 3.8

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-HTTPAuth-stubs-0.1.5.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page