pySim.log: fix E0611: No name 'style' in module 'cmd2'

Change-Id: I191ea56f4c6e4e1916369f69fe2e1653e1d92df1
Fixes: 597f1e0 ("pySim.log, pySim-shell: fix compatibility with cmd2 >= 3.0.0")
This commit is contained in:
Vadim Yanitskiy
2026-07-01 16:46:49 +07:00
parent 597f1e0398
commit 973d6eb2cc
+1 -1
View File
@@ -32,7 +32,7 @@ if version.parse(cmd2.__version__) >= version.parse("3.0.0"):
def _style(text, fg=None): # pylint: disable=function-redefined
return _stylize(text, fg) if fg else text
else: # cmd2>=2.6.2
from cmd2 import style as _style # type: ignore[no-redef]
from cmd2 import style as _style # pylint: disable=no-name-in-module
class _PySimLogHandler(logging.Handler):
def __init__(self, log_callback):