pyca / pynacl

Python binding to the Networking and Cryptography (NaCl) library
https://pynacl.readthedocs.io/
Apache License 2.0
1.06k stars 233 forks source link

Move `warn_incomplete_stub` to global options #705

Closed DMRobertson closed 2 years ago

DMRobertson commented 2 years ago

A follow-up to #698.

This suppresses the following warning from mypy, by making the flag apply globally rather than to a specific module.

pyproject.toml: [module = "nacl.bindings.crypto_aead"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.encoding"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.exceptions"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)
pyproject.toml: [module = "nacl.utils"]: Per-module sections should only specify per-module flags (warn_incomplete_stub)