Skip to content

Commit 6f9a678

Browse files
vicalloyjonathanslenders
authored andcommitted
no cache for prompt_toolkit.filters.base.Never/Always
1 parent e6cf4ba commit 6f9a678

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/prompt_toolkit/filters/base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ def __call__(self) -> bool:
207207
def __or__(self, other: Filter) -> Filter:
208208
return self
209209

210+
def __and__(self, other: Filter) -> Filter:
211+
return other
212+
210213
def __invert__(self) -> Never:
211214
return Never()
212215

@@ -222,6 +225,9 @@ def __call__(self) -> bool:
222225
def __and__(self, other: Filter) -> Filter:
223226
return self
224227

228+
def __or__(self, other: Filter) -> Filter:
229+
return other
230+
225231
def __invert__(self) -> Always:
226232
return Always()
227233

0 commit comments

Comments
 (0)