File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ def __pt_formatted_text__(self) -> StyleAndTextTuples: ...
4545 str ,
4646 "MagicFormattedText" ,
4747 StyleAndTextTuples ,
48- # Callable[[], 'AnyFormattedText'] # Recursive definition not supported by mypy.
49- Callable [[], Any ],
48+ Callable [[], "AnyFormattedText" ],
5049 None ,
5150]
5251
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def get_sync_start_position(
104104 return lineno , 0
105105
106106 @classmethod
107- def from_pygments_lexer_cls (cls , lexer_cls : PygmentsLexerCls ) -> RegexSync :
107+ def from_pygments_lexer_cls (cls , lexer_cls : type [ PygmentsLexerCls ] ) -> RegexSync :
108108 """
109109 Create a :class:`.RegexSync` instance for this Pygments lexer class.
110110 """
You can’t perform that action at this time.
0 commit comments