Skip to content

Commit

Permalink
chore: resolve mypy==1.6.0 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVillalovos committed Oct 16, 2023
1 parent e123c63 commit c363083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions imapclient/interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,28 @@ def main() -> int:
banner = '\nIMAPClient instance is "c"'

def ptpython(c: imapclient.IMAPClient) -> None:
from ptpython.repl import embed # type: ignore[import]
from ptpython.repl import embed # type: ignore[import-not-found]

embed(globals(), locals())

def ipython_400(c: imapclient.IMAPClient) -> None:
from IPython.terminal.embed import InteractiveShellEmbed # type: ignore[import]
from IPython.terminal.embed import ( # type: ignore[import-not-found]
InteractiveShellEmbed,
)

ipshell = InteractiveShellEmbed(banner1=banner)
ipshell("")

def ipython_011(c: imapclient.IMAPClient) -> None:
from IPython.frontend.terminal.embed import ( # type: ignore[import]
from IPython.frontend.terminal.embed import ( # type: ignore[import-not-found]
InteractiveShellEmbed,
)

ipshell = InteractiveShellEmbed(banner1=banner)
ipshell("")

def ipython_010(c: imapclient.IMAPClient) -> None:
from IPython.Shell import IPShellEmbed # type: ignore[import]
from IPython.Shell import IPShellEmbed # type: ignore[import-not-found]

IPShellEmbed("", banner=banner)()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from os import path
from typing import Dict

from setuptools import setup # type: ignore[import]
from setuptools import setup # type: ignore[import-untyped]

# Read version info
here = path.dirname(__file__)
Expand Down

0 comments on commit c363083

Please sign in to comment.