Skip to content

Commit ffbfa51

Browse files
dbiebercopybara-github
authored andcommitted
Add disable=import-outside-toplevel pylint lines.
PiperOrigin-RevId: 282375002 Change-Id: I83c9354df82baa8d31fb068cf06a02df35341c50
1 parent a781058 commit ffbfa51

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
@@ -191,7 +191,7 @@ def Info(component):
191191
A dict with information about the component.
192192
"""
193193
try:
194-
from IPython.core import oinspect # pylint: disable=g-import-not-at-top
194+
from IPython.core import oinspect # pylint: disable=import-outside-toplevel,g-import-not-at-top
195195
inspector = oinspect.Inspector()
196196
info = inspector.info(component)
197197

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 code # pylint: disable=import-outside-toplevel,g-import-not-at-top
9999
code.InteractiveConsole(variables).interact()

0 commit comments

Comments
 (0)