Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fire/inspectutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ def Info(component):

try:
unused_code, lineindex = inspect.findsource(component)
info['line'] = lineindex + 1
info['line'] = lineindex + 1 # type: ignore
except (TypeError, OSError):
info['line'] = None
info['line'] = None # type: ignore

if 'docstring' in info:
info['docstring_info'] = docstrings.parse(info['docstring'])
info['docstring_info'] = docstrings.parse(info['docstring']) # type: ignore

return info

Expand Down
2 changes: 1 addition & 1 deletion fire/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sys

if sys.version_info[0:2] < (3, 8):
_StrNode = ast.Str
_StrNode = ast.Str # type: ignore # deprecated but needed for Python < 3.8
else:
_StrNode = ast.Constant

Expand Down
Loading