Skip to main content

Mypy plugin and stubs for Flask-HTTPAuth

Project description

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

Flask-HTTPAuth-stubs

Add types for Flask-HTTPAuth for mypy.

Installation

$ pip install flask-httpauth-stubs

Usage

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.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file Flask-HTTPAuth-stubs-0.1.6.tar.gz.

File metadata

  • Download URL: Flask-HTTPAuth-stubs-0.1.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for Flask-HTTPAuth-stubs-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c8f6179a58bd3b58747fbc40754c0b35f3b32fd7f4b25ee9ec259fd02e4accda
MD5 bddf40ee2f17c9cbeebdcc537e8a39c0
BLAKE2b-256 4cde900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b

See more details on using hashes here.

File details

Details for the file Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 366a4d0b7bd570659ea327e09217595ca96ddec3194425b80256bdadbf145f97
MD5 6ce2cb953f1be09845988c81d3d403b4
BLAKE2b-256 f6fe82b1856a374474c2e505bb19e649ff9d94f667c6ed3d1cef53dcc0cf9754

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page