Skip to content

Commit 3237223

Browse files
committed
Remove more type annotations that do not work with Python 3.6
1 parent bf2b32f commit 3237223

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/lazyre.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def __init__(self, regex: str, flags: int = 0) -> None:
4343
def compiled(self):
4444
return re.compile(self.regex, self.flags)
4545

46-
def finditer(self, *args, **kwargs) -> Iterator[re.Match]:
46+
def finditer(self, *args, **kwargs):
4747
return self.compiled.finditer(*args, **kwargs)
4848

49-
def search(self, *args, **kwargs) -> Optional[re.Match]:
49+
def search(self, *args, **kwargs):
5050
return self.compiled.search(*args, **kwargs)
5151

52-
def match(self, *args, **kwargs) -> Optional[re.Match]:
52+
def match(self, *args, **kwargs):
5353
return self.compiled.match(*args, **kwargs)
5454

5555
def sub(self, *args, **kwargs) -> str:

0 commit comments

Comments
 (0)