We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6cf4ba commit 6f9a678Copy full SHA for 6f9a678
src/prompt_toolkit/filters/base.py
@@ -207,6 +207,9 @@ def __call__(self) -> bool:
207
def __or__(self, other: Filter) -> Filter:
208
return self
209
210
+ def __and__(self, other: Filter) -> Filter:
211
+ return other
212
+
213
def __invert__(self) -> Never:
214
return Never()
215
@@ -222,6 +225,9 @@ def __call__(self) -> bool:
222
225
def __and__(self, other: Filter) -> Filter:
223
226
224
227
228
+ def __or__(self, other: Filter) -> Filter:
229
230
231
def __invert__(self) -> Always:
232
return Always()
233
0 commit comments