1 | initial version |
To add to pyproject.toml to disregard absent library stubs for mypy, you can use the ignore_missing_imports
setting. Here are the steps to follow:
pyproject.toml
file.Add the following section to the file, if it does not already exist:
[mypy]
Add the following line to the mypy
section to ignore missing imports:
ignore_missing_imports = true
Save the pyproject.toml
file.
This setting tells mypy to ignore any missing import errors, including missing library stubs. This can be useful when working with external libraries that do not have stubs available or when using third-party packages that have incomplete type annotations.