File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,12 @@ def Info(component):
269269
270270 try :
271271 unused_code , lineindex = inspect .findsource (component )
272- info ['line' ] = lineindex + 1
272+ info ['line' ] = lineindex + 1 # type: ignore
273273 except (TypeError , OSError ):
274- info ['line' ] = None
274+ info ['line' ] = None # type: ignore
275275
276276 if 'docstring' in info :
277- info ['docstring_info' ] = docstrings .parse (info ['docstring' ])
277+ info ['docstring_info' ] = docstrings .parse (info ['docstring' ]) # type: ignore
278278
279279 return info
280280
Original file line number Diff line number Diff line change 1919import sys
2020
2121if sys .version_info [0 :2 ] < (3 , 8 ):
22- _StrNode = ast .Str
22+ _StrNode = ast .Str # type: ignore # deprecated but needed for Python < 3.8
2323else :
2424 _StrNode = ast .Constant
2525
You can’t perform that action at this time.
0 commit comments