1717from fire import docstrings
1818from fire import testutils
1919
20- # pylint: disable=invalid-name
20+
2121DocstringInfo = docstrings .DocstringInfo
2222ArgInfo = docstrings .ArgInfo
2323KwargInfo = docstrings .KwargInfo
24- # pylint: enable=invalid-name
24+
2525
2626
2727class DocstringsTest (testutils .BaseTestCase ):
@@ -45,12 +45,12 @@ def test_one_line_simple_whitespace(self):
4545 self .assertEqual (expected_docstring_info , docstring_info )
4646
4747 def test_one_line_too_long (self ):
48- # pylint: disable=line-too-long
48+
4949 docstring = """A one line docstring that is both a little too verbose
5050 and a little too long so it keeps going well beyond a reasonable length
5151 for a one-liner.
5252 """
53- # pylint: enable=line-too-long
53+
5454 docstring_info = docstrings .parse (docstring )
5555 expected_docstring_info = DocstringInfo (
5656 summary = 'A one line docstring that is both a little too verbose and '
@@ -60,11 +60,11 @@ def test_one_line_too_long(self):
6060 self .assertEqual (expected_docstring_info , docstring_info )
6161
6262 def test_one_line_runs_over (self ):
63- # pylint: disable=line-too-long
63+
6464 docstring = """A one line docstring that is both a little too verbose
6565 and a little too long so it runs onto a second line.
6666 """
67- # pylint: enable=line-too-long
67+
6868 docstring_info = docstrings .parse (docstring )
6969 expected_docstring_info = DocstringInfo (
7070 summary = 'A one line docstring that is both a little too verbose and '
@@ -306,7 +306,7 @@ def test_strip_blank_lines(self):
306306 lines = [' ' , ' foo ' , ' ' ]
307307 expected_output = [' foo ' ]
308308
309- self .assertEqual (expected_output , docstrings ._strip_blank_lines (lines )) # pylint: disable=protected-access
309+ self .assertEqual (expected_output , docstrings ._strip_blank_lines (lines ))
310310
311311 def test_numpy_colon_in_description (self ):
312312 docstring = """
0 commit comments