Skip to content

Commit

Permalink
Fix errors in block disables paragraph in User Guide (#4489)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed May 23, 2021
1 parent 605afdb commit be2bf84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,3 +489,5 @@ contributors:

* Aditya Gupta (adityagupta1089) : contributor
- Added ignore_signatures to duplicate checker

* Jacob Walls: contributor
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ modules are added.

Closes #3619

* Fix documentation errors in "Block disables" paragraph of User Guide.


What's New in Pylint 2.8.2?
===========================
Expand Down
4 changes: 2 additions & 2 deletions doc/user_guide/message-control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ The pragma controls can disable / enable:
print(self.bla)
if self.blop:
# pylint: enable=no-member
# disable all no-members for this block
# enable all no-members for this block
print(self.blip)
else:
# This is affected by the scope disable
print(self.blip)
# pylint: enable=no-member
print(self.blip)
if self.blop:
# pylint: enable=no-member
# pylint: disable=no-member
# disable all no-members for this block
print(self.blip)
else:
Expand Down

0 comments on commit be2bf84

Please sign in to comment.