discord.py stubs
Project description
discord.py-stubs
This package contains type stubs to provide more precise static types and type inference for discord.py.
Installation
pip install discord.py-stubs
NOTE: Because discord.py
uses namespace packages for its extensions, mypy
must be configured to use namespace packages either with the --namespace-packages
command line flag, or by setting namespace_packages = True
in your mypy
configuration file. See the import discovery section of the mypy
documentation for more details.
Development
Make sure you have poetry installed.
poetry install
poetry run pre-commit install --hook-type pre-commit --hook-type post-checkout
Version numbering scheme
At this time, the version number of discord.py-stubs
will follow the version number of discord.py
it corresponds to and append one more version segment that indicates the sequence of releases for the stubs. For instance, if you are using discord.py
version 1.3.4
, you would use discord.py-stubs
version 1.3.4.X
where X
is an integer.
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
Hashes for discord.py_stubs-1.4.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aedef227eef36d4f23afd6dbb3787e54ffe89d5fdfeb9dcde110b74409ff6d1 |
|
MD5 | 341d6a1383a2d6ed2e29b7e061b98b43 |
|
BLAKE2b-256 | 5e2b5d92baf1b3da2119cb5d130570d7eae8d89e7db6a02d4d85a0e49a1c412a |