No project description provided
Project description
loguru-mypy
A fancy plugin to boost up your logging with loguru
mypy compatibility
logoru-mypy should compatible with mypy==0.770 and upwards.
Installation
Simply execute:
pip install loguru-mypy
And later on modify your mypy.ini configuration file with
[mypy]
plugins = loguru_mypy
That is all, your code is now ready to be linted.
What is included?
loguru-mypy is obviously a mypy plugin that allows to avoid
some of those little runtime trickeries :).
Here is a short attempt to list some of those:
Lazy loggers
logger.opt(lazy=True) in facts returns a logger that we call lazy. Lazy loggers accept only
typing.Callable[[], t.Any] in place of positional or named arguments. Passing a callable that
accepts even a single argument thus results in runtime error. loguru-mypy detects that fact
and lets you know before your runtime reaches that portion of a code.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loguru-mypy-0.0.3.tar.gz.
File metadata
- Download URL: loguru-mypy-0.0.3.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7ef6e60c09af549cbee6aee21a8afbcd93065ca851839912a376dc03788a6fb
|
|
| MD5 |
6896a96a044c09b49f90b8cf9f042661
|
|
| BLAKE2b-256 |
2ccbbcd2fb59b376c0dc5ef38b8f176b0a5a01d34a0ebf2006b9f746bf9db69e
|
File details
Details for the file loguru_mypy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: loguru_mypy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a0486644a946106c33ce246846f2eb18018816f20a92eff8cac4400b0b152e
|
|
| MD5 |
464d7d06d1b9941bf02c0b6c54ab6087
|
|
| BLAKE2b-256 |
f2e0a1752a7614a3576d9b544159c33586df62061d497696f7ef4833c4821fea
|