E0235

Message

__exit__ must accept 3 arguments: type, value, traceback

Description

Used when the __exit__ method of a context manager class does not have exactly three arguments.

Explanation

The names of the arguments are ignored for purposes of this message. For details, see Python docs: The with statement.


Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License