Skip to content

Commit 750df02

Browse files
!fixup fixing types
1 parent d58324d commit 750df02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/_colorize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,12 @@ class _Span(NamedTuple):
399399
end: int
400400

401401
@classmethod
402-
def from_re(cls, m: Match[str], group: int | str) -> "_Span":
402+
def from_re(cls, m: Match[str], group: int | str) -> Self:
403403
re_span = m.span(group)
404404
return cls(re_span[0], re_span[1] - 1)
405405

406406
@classmethod
407-
def from_token(cls, token: TI, line_len: list[int]) -> "_Span":
407+
def from_token(cls, token: TI, line_len: list[int]) -> Self:
408408
end_offset = -1
409409
if (token.type in {T.FSTRING_MIDDLE, T.TSTRING_MIDDLE}
410410
and token.string.endswith(("{", "}"))):

0 commit comments

Comments
 (0)