Type annotations for the Traits package
Project description
The traits-stubs package contains external type annotations for the Traits package. These annotations can be used with static type checkers like mypy to type-check your Traits-using Python code.
Installation
To install from PyPI, simply use pip install traits-stubs.
To install from source, run pip install . from this directory.
Usage
You’ll usually want to install mypy (or another type checker) into your Python environment alongside these stubs. You can then use mypy from the command line to check a file or directory, for example with:
mypy <somefile.py>
Alternatively, some IDEs (including VS Code and PyCharm) can be configured to perform type checking as you edit.
Dependencies
This package depends on Traits.
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
File details
Details for the file traits-stubs-6.1.0.tar.gz
.
File metadata
- Download URL: traits-stubs-6.1.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec17d568ff22a7866a5bfb518c391d5b9652fae8087e8365353aad0b857dc717 |
|
MD5 | 5ee5d4a88e5d26c25ded91e87f460086 |
|
BLAKE2b-256 | 5a019a9b1f36432ee7091e241c929afa3d9900dd653d61d0fe123beb0d8fa63b |