Fix type checking warning
This commit is contained in:
@@ -460,9 +460,8 @@ class GuiDocEditor(QTextEdit):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def updateTagHighLighting(self):
|
def updateTagHighLighting(self) -> None:
|
||||||
"""Rerun the syntax highlighter on all meta data lines.
|
"""Rerun the syntax highlighter on all meta data lines."""
|
||||||
"""
|
|
||||||
self.highLight.rehighlightByType(GuiDocHighlighter.BLOCK_META)
|
self.highLight.rehighlightByType(GuiDocHighlighter.BLOCK_META)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -672,7 +671,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
self._nwItem.setCursorPos(cursPos)
|
self._nwItem.setCursorPos(cursPos)
|
||||||
return
|
return
|
||||||
|
|
||||||
def setCursorLine(self, line: int) -> bool:
|
def setCursorLine(self, line: int | None) -> bool:
|
||||||
"""Move the cursor to a given line in the document."""
|
"""Move the cursor to a given line in the document."""
|
||||||
if not isinstance(line, int):
|
if not isinstance(line, int):
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user