diff options
| author | David Allouche <david@allouche.net> | 2018-01-10 23:18:35 +0100 |
|---|---|---|
| committer | David Allouche <david@allouche.net> | 2018-01-10 23:18:35 +0100 |
| commit | 124fb117987a4361dd1536cbcf1ec2cd41b037d4 (patch) | |
| tree | d0234453ec0a5b282434df74b3fe751cc721f0e2 /docs/tests.documentation.rst | |
| parent | 9e0b29c86d233fcc2f212bfb11bcac48d4891bbc (diff) | |
| download | python-decorator-git-124fb117987a4361dd1536cbcf1ec2cd41b037d4.tar.gz | |
Enable pylint to support decorator.contextmanager
Using decorator.contextmanager trigger the pylint error E1129 (not-context-manager).
Pylint has a configuration option for this:
# List of decorators that produce context managers, such as
# contextlib.contextmanager. Add to this list to register other decorators that
# produce valid context managers.
contextmanager-decorators=contextlib.contextmanager,decorator.contextmanager
But the current implementation of decorator.contextmanager prevents this from working.
Changing contextmanager to be a simple function fixes the issue.
Diffstat (limited to 'docs/tests.documentation.rst')
0 files changed, 0 insertions, 0 deletions
