[Python-Dev] [python-committers] Enabling depreciation warnings feature code cutoff

Antoine Pitrou solipsis at pitrou.net
Sat Nov 11 06:34:56 EST 2017


On Sat, 11 Nov 2017 07:34:05 +0000
Brett Cannon <brett at python.org> wrote:
> 
> One problem with that is I don't want e.g. mypy to start spewing out
> warnings while checking my code.

It's rather trivial for mypy (or any other code analysis tool) to turn
warnings off when importing the code under analysis.  And since there
are other warnings out there than DeprecationWarnings, it should do it
anyway even if we don't change DeprecationWarning's default behaviour.

Regards

Antoine.




More information about the Python-Dev mailing list