Skip to content

Commit

Permalink
Make Python 3.6 friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails86 committed Apr 20, 2024
1 parent 773a14a commit 305b58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansi_string/ansi_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ def __str__(self) -> str:
return self.__format__(None)

@staticmethod
def _re_search(expr:Union[str, "re.Pattern[str]"], string:str, result:List[re.Match[str]]) -> Union[re.Match[str], None]:
def _re_search(expr:Union[str, "re.Pattern[str]"], string:str, result:List["re.Match[str]"]) -> Union["re.Match[str]", None]:
'''
Helper method so I can assign and check in the same "if" statement
'''
Expand Down

0 comments on commit 305b58c

Please sign in to comment.