List typehints found in Python source code
Project description
typelint
typelint is a program that detects and reports typehints in
Python source code.
List type hints:
python -m typelint mypython.py
Quiet mode (number is reported as $?):
python -m typelint --quiet mypython.py
In either mode the number of typehints found is reported as the program's exit status. Counts above 99 are reported as 99 (so as to avoid overflowing the exit status value, and to leave some room for reporting errors).
Exit status
Because the count is reported at the exit status and
the shell's convention is to treat 0 as true (success),
it is convenient to use typelint as a test in shell scripts:
if python typelint.py mypython.py
then
echo "no typehints found"
else
echo "typehints found"
fi
END
Project details
Release history Release notifications | RSS feed
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 typelint-0.0.1.tar.gz.
File metadata
- Download URL: typelint-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff1514cfc650362a9fa9e72d9f51c4f25bb591a372e31472a63cdf79b003ba4d
|
|
| MD5 |
e6f51b0a19e7950f485b6865129d0030
|
|
| BLAKE2b-256 |
62718da0f7dbd694592f47316ca49fd6a08b364c35b34e4616286f20962394d2
|
File details
Details for the file typelint-0.0.1-py3-none-any.whl.
File metadata
- Download URL: typelint-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b54f15fa8945435c47d088c2864640a7b8786671a5529db79913af4094d73df3
|
|
| MD5 |
d216dfa65ce7228251765ab2cf899ed0
|
|
| BLAKE2b-256 |
dbcbca8f985bdef7ec172d7ab91b6a384ac55c7d42557b4aa81c93fb5ca799a6
|