feat: add preset bool filter

This commit is contained in:
2026-08-10 13:36:12 +03:00
parent 9d15380443
commit a77a430d51
6 changed files with 34 additions and 11 deletions
+13 -1
View File
@@ -3,6 +3,18 @@ from pathlib import Path
from .entry import Entry
class EmptyEntry(Entry):
def __init__(self):
super().__init__({}, Path())
def __bool__(self):
return False
ENTRY_NONE = EmptyEntry()
ENTRY_SKIP = EmptyEntry()
class EntryDetector:
def detect_entry(self, basepath: Path) -> Entry | None:
def detect_entry(self, basepath: Path) -> Entry:
raise NotImplementedError