fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/42914?usp=email )


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

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")
---
M pySim/log.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/14/42914/1

diff --git a/pySim/log.py b/pySim/log.py
index 1204c4f..3fad90b 100644
--- a/pySim/log.py
+++ b/pySim/log.py
@@ -32,7 +32,7 @@
     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):

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/42914?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I191ea56f4c6e4e1916369f69fe2e1653e1d92df1
Gerrit-Change-Number: 42914
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to