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
Release files for Flask-HTTPAuth-stubs 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Flask-HTTPAuth-stubs-0.1.6.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / Flask-HTTPAuth-stubs-0.1.6.tar.gz
| Download URL | Flask-HTTPAuth-stubs-0.1.6.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8f6179a58bd3b58747fbc40754c0b35f3b32fd7f4b25ee9ec259fd02e4accda
|
|
BLAKE2b-256 checksum How to use checksums |
4cde900970b098fa3e55693cad4813099f7bbb5bd14463e7a8347e0da756196b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl
| Download URL | Flask_HTTPAuth_stubs-0.1.6-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
366a4d0b7bd570659ea327e09217595ca96ddec3194425b80256bdadbf145f97
|
|
BLAKE2b-256 checksum How to use checksums |
f6fe82b1856a374474c2e505bb19e649ff9d94f667c6ed3d1cef53dcc0cf9754
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|