Skip to content

Commit aa0cf5b

Browse files
committed
Add a note about enabling namespace package discovery in mypy
1 parent e1559b7 commit aa0cf5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ This package contains type stubs to provide more precise static types and type i
1212
pip install discord.py-stubs
1313
```
1414

15+
**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](https://mypy.readthedocs.io/en/stable/command_line.html#import-discovery) section of the `mypy` documentation for more details.
16+
1517
## Development
1618

1719
Make sure you have [poetry](https://python-poetry.org/) installed.

0 commit comments

Comments
 (0)