Skip to content

Commit

Permalink
Don't subscript re.Pattern
Browse files Browse the repository at this point in the history
Apparently Python 3.8 doesn't like it, so
  • Loading branch information
ebraminio committed Nov 17, 2023
1 parent 5d6178d commit 3a77766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiosseclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# pylint: disable=too-many-arguments, dangerous-default-value, redefined-builtin, unsubscriptable-object

_SSE_LINE_PATTERN: Final[re.Pattern[str]] = re.compile('(?P<name>[^:]*):?( ?(?P<value>.*))?')
_SSE_LINE_PATTERN: Final[re.Pattern] = re.compile('(?P<name>[^:]*):?( ?(?P<value>.*))?')
_LOGGER = logging.getLogger(__name__)

# Good parts of the below class is adopted from:
Expand Down

0 comments on commit 3a77766

Please sign in to comment.