Skip to content

Commit fb457c5

Browse files
committed
IRCBuffer.find's not_pattern arg should be optional
1 parent 37b15e4 commit fb457c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IRCBuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_all(self, for_user: typing.Optional[str]=None):
5656
yield line
5757

5858
def find(self, pattern: typing.Union[str, typing.Pattern[str]],
59-
not_pattern: typing.Union[str, typing.Pattern[str]],
59+
not_pattern: typing.Union[str, typing.Pattern[str]]=None,
6060
from_self=True, for_user: str=None, deleted=False
6161
) -> typing.Optional[BufferLineMatch]:
6262
if for_user:

0 commit comments

Comments
 (0)