Mypy plugin and stubs for Flask-HTTPAuth
Project description
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8f6179a58bd3b58747fbc40754c0b35f3b32fd7f4b25ee9ec259fd02e4accda |
|
MD5 | bddf40ee2f17c9cbeebdcc537e8a39c0 |
|
BLAKE2b-256 | 4cde900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b |
File details
Details for the file Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 366a4d0b7bd570659ea327e09217595ca96ddec3194425b80256bdadbf145f97 |
|
MD5 | 6ce2cb953f1be09845988c81d3d403b4 |
|
BLAKE2b-256 | f6fe82b1856a374474c2e505bb19e649ff9d94f667c6ed3d1cef53dcc0cf9754 |