Skip to content

Commit 0eb7d84

Browse files
committed
ruff(shell): Update ruff lint
1 parent 3d784b4 commit 0eb7d84

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/tmuxp/shell.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ class LaunchImports(t.TypedDict):
5151
def has_ipython() -> bool:
5252
"""Return True if ipython is installed."""
5353
try:
54-
from IPython import start_ipython # NOQA: F841
54+
from IPython import start_ipython # NOQA: F401
5555
except ImportError:
5656
try:
57-
from IPython.Shell import IPShell # NOQA: F841
57+
from IPython.Shell import IPShell # NOQA: F401
5858
except ImportError:
5959
return False
6060

@@ -64,10 +64,10 @@ def has_ipython() -> bool:
6464
def has_ptpython() -> bool:
6565
"""Return True if ptpython is installed."""
6666
try:
67-
from ptpython.repl import embed, run_config # F841
67+
from ptpython.repl import embed, run_config # F401
6868
except ImportError:
6969
try:
70-
from prompt_toolkit.contrib.repl import embed, run_config # NOQA: F841
70+
from prompt_toolkit.contrib.repl import embed, run_config # NOQA: F401
7171
except ImportError:
7272
return False
7373

@@ -77,12 +77,12 @@ def has_ptpython() -> bool:
7777
def has_ptipython() -> bool:
7878
"""Return True if ptpython + ipython are both installed."""
7979
try:
80-
from ptpython.ipython import embed # F841
81-
from ptpython.repl import run_config # F841
80+
from ptpython.ipython import embed # F401
81+
from ptpython.repl import run_config # F401
8282
except ImportError:
8383
try:
84-
from prompt_toolkit.contrib.ipython import embed # NOQA: F841
85-
from prompt_toolkit.contrib.repl import run_config # NOQA: F841
84+
from prompt_toolkit.contrib.ipython import embed # NOQA: F401
85+
from prompt_toolkit.contrib.repl import run_config # NOQA: F401
8686
except ImportError:
8787
return False
8888

@@ -92,7 +92,7 @@ def has_ptipython() -> bool:
9292
def has_bpython() -> bool:
9393
"""Return True if bpython is installed."""
9494
try:
95-
from bpython import embed # NOQA: F841
95+
from bpython import embed # NOQA: F401
9696
except ImportError:
9797
return False
9898
return True
@@ -119,7 +119,7 @@ def get_bpython(
119119
if extra_args is None:
120120
extra_args = {}
121121

122-
from bpython import embed # F841
122+
from bpython import embed
123123

124124
def launch_bpython() -> None:
125125
imported_objects = get_launch_args(**options)

0 commit comments

Comments
 (0)