Skip to content

Commit 84a54df

Browse files
committed
Python 3.6 does not yet know about re.Pattern
1 parent 3193adf commit 84a54df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bpython/lazyre.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, regex: str, flags: int = 0) -> None:
4040
self.flags = flags
4141

4242
@cached_property
43-
def compiled(self) -> re.Pattern:
43+
def compiled(self):
4444
return re.compile(self.regex, self.flags)
4545

4646
def finditer(self, *args, **kwargs) -> Iterator[re.Match]:

0 commit comments

Comments
 (0)