Skip to main content

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.


  • To install from PyPI, simply use pip install traits-stubs.

  • To install from source, run pip install . from this directory.


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 <>

Alternatively, some IDEs (including VS Code and PyCharm) can be configured to perform type checking as you edit.


This package depends on Traits.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

traits-stubs-6.1.0.tar.gz (16.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page