Skip to content

Commit

Permalink
python3.8 Match typing
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Nov 30, 2023
1 parent 2373c6c commit f5af2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_patterns/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def symbol(self) -> str:
EMPTY_LINE_PATTERN = "<empty-line>"


def match(pattern: str, line: str) -> Optional[ Union[bool, re.Match[str]]]:
def match(pattern: str, line: str) -> Optional[ Union[bool, "re.Match[str]"]]:
if pattern == EMPTY_LINE_PATTERN:
if not line:
return True
Expand Down

0 comments on commit f5af2d7

Please sign in to comment.