Fix lint
This commit is contained in:
parent
34946d031b
commit
0c1f611a72
@ -86,6 +86,7 @@ class Command(MinimalLineEdit):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def prefix(self):
|
def prefix(self):
|
||||||
|
"""Property to get the current command prefix entered."""
|
||||||
text = self.text()
|
text = self.text()
|
||||||
if not text:
|
if not text:
|
||||||
return ''
|
return ''
|
||||||
@ -96,6 +97,7 @@ class Command(MinimalLineEdit):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def parts(self):
|
def parts(self):
|
||||||
|
"""Property to get the text split up in parts."""
|
||||||
text = self.text()
|
text = self.text()
|
||||||
if not text:
|
if not text:
|
||||||
return []
|
return []
|
||||||
@ -220,7 +222,7 @@ class Command(MinimalLineEdit):
|
|||||||
signals[text[0]].emit(text.lstrip(text[0]))
|
signals[text[0]].emit(text.lstrip(text[0]))
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def on_text_edited(self, text):
|
def on_text_edited(self, _text):
|
||||||
"""Slot for textEdited. Stop history and update completion."""
|
"""Slot for textEdited. Stop history and update completion."""
|
||||||
self.history.stop()
|
self.history.stop()
|
||||||
self._update_cursor_part()
|
self._update_cursor_part()
|
||||||
|
Loading…
Reference in New Issue
Block a user