Skip to content

Commit 7a9b3e4

Browse files
committed
Fix missing typevar
1 parent 82479b4 commit 7a9b3e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stubs/Pygments/pygments/formatters/groff.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
from _typeshed import SupportsWrite
22
from collections.abc import Iterable
3+
from typing import TypeVar
34

45
from pygments.formatter import Formatter
56
from pygments.token import _TokenType
67

78
__all__ = ["GroffFormatter"]
89

9-
class GroffFormatter(Formatter):
10+
_T = TypeVar("_T", str, bytes)
11+
12+
class GroffFormatter(Formatter[_T]):
1013
monospaced: bool
1114
linenos: bool
1215
wrap: int

0 commit comments

Comments
 (0)