Enable Ruff preview flag
This commit is contained in:
@@ -605,7 +605,7 @@ class Index:
|
||||
"""Get all headings for a specific item."""
|
||||
if tItem := self._itemIndex[tHandle]:
|
||||
yield from tItem.items()
|
||||
return []
|
||||
return
|
||||
|
||||
def novelStructure(
|
||||
self, rootHandle: str | None = None, activeOnly: bool = True
|
||||
|
||||
@@ -137,7 +137,7 @@ class GuiTextDocument(QTextDocument):
|
||||
if count < maxCount and block.isValid() and block.userState() & cType > 0:
|
||||
count += 1
|
||||
yield block
|
||||
return None
|
||||
return
|
||||
|
||||
##
|
||||
# Public Slots
|
||||
|
||||
Reference in New Issue
Block a user