We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ea2f63 commit 0b28377Copy full SHA for 0b28377
2 files changed
fire/inspectutils.py
@@ -269,12 +269,12 @@ def Info(component):
269
270
try:
271
unused_code, lineindex = inspect.findsource(component)
272
- info['line'] = lineindex + 1
+ info['line'] = lineindex + 1 # type: ignore
273
except (TypeError, OSError):
274
- info['line'] = None
+ info['line'] = None # type: ignore
275
276
if 'docstring' in info:
277
- info['docstring_info'] = docstrings.parse(info['docstring'])
+ info['docstring_info'] = docstrings.parse(info['docstring']) # type: ignore
278
279
return info
280
fire/parser.py
@@ -19,7 +19,7 @@
19
import sys
20
21
if sys.version_info[0:2] < (3, 8):
22
- _StrNode = ast.Str
+ _StrNode = ast.Str # type: ignore # deprecated but needed for Python < 3.8
23
else:
24
_StrNode = ast.Constant
25
0 commit comments