IRCBuffer.find's not_pattern arg should be optional

This commit is contained in:
jesopo 2020-01-20 16:27:03 +00:00
parent 37b15e442d
commit fb457c52fb

View file

@ -56,7 +56,7 @@ class Buffer(object):
yield line yield line
def find(self, pattern: typing.Union[str, typing.Pattern[str]], def find(self, pattern: typing.Union[str, typing.Pattern[str]],
not_pattern: typing.Union[str, typing.Pattern[str]], not_pattern: typing.Union[str, typing.Pattern[str]]=None,
from_self=True, for_user: str=None, deleted=False from_self=True, for_user: str=None, deleted=False
) -> typing.Optional[BufferLineMatch]: ) -> typing.Optional[BufferLineMatch]:
if for_user: if for_user: