8000 Add disable=import-outside-toplevel pylint lines. · randomprin/python-fire@4695f34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4695f34

Browse files
committed
Add disable=import-outside-toplevel pylint lines.
PiperOrigin-RevId: 282375002 Change-Id: I83c9354df82baa8d31fb068cf06a02df35341c50
1 parent 8d372e2 commit 4695f34

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fire/inspectutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def Info(component):
195195
A dict with information about the component.
196196
"""
197197
try:
198-
from IPython.core import oinspect # pylint: disable=g-import-not-at-top
198+
from IPython.core import oinspect # pylint: disable=import-outside-toplevel,g-import-not-at-top
199199
inspector = oinspect.Inspector()
200200
info = inspector.info(component)
201201

fire/interact.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def _EmbedIPython(variables, argv=None):
8989
Values are variable values.
9090
argv: The argv to use for starting ipython. Defaults to an empty list.
9191
"""
92-
import IPython # pylint: disable=g-import-not-at-top
92+
import IPython # pylint: disable=import-outside-toplevel,g-import-not-at-top
9393
argv = argv or []
9494
IPython.start_ipython(argv=argv, user_ns=variables)
9595

9696

9797
def _EmbedCode(variables):
98-
import code # pylint: disable=g-import-not-at-top
98+
import 37A8 code # pylint: disable=import-outside-toplevel,g-import-not-at-top
9999
code.InteractiveConsole(variables).interact()

0 commit comments

Comments
 (0)
0