Skip to content

Commit

Permalink
Add disable=import-outside-toplevel pylint lines.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 282375002
Change-Id: I83c9354df82baa8d31fb068cf06a02df35341c50
  • Loading branch information
dbieber authored and copybara-github committed Nov 25, 2019
1 parent a781058 commit ffbfa51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fire/inspectutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def Info(component):
A dict with information about the component.
"""
try:
from IPython.core import oinspect # pylint: disable=g-import-not-at-top
from IPython.core import oinspect # pylint: disable=import-outside-toplevel,g-import-not-at-top
inspector = oinspect.Inspector()
info = inspector.info(component)

Expand Down
4 changes: 2 additions & 2 deletions fire/interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def _EmbedIPython(variables, argv=None):
Values are variable values.
argv: The argv to use for starting ipython. Defaults to an empty list.
"""
import IPython # pylint: disable=g-import-not-at-top
import IPython # pylint: disable=import-outside-toplevel,g-import-not-at-top
argv = argv or []
IPython.start_ipython(argv=argv, user_ns=variables)


def _EmbedCode(variables):
import code # pylint: disable=g-import-not-at-top
import code # pylint: disable=import-outside-toplevel,g-import-not-at-top
code.InteractiveConsole(variables).interact()

0 comments on commit ffbfa51

Please sign in to comment.