You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
933fec0 made
pygments.formatter.Formatter generic to improve the type-safety
of pygments.format() and pygments.highlight().
The actual pygments.formatter.Formatter however is not generic,
meaning that pygments.formatter.Formatter[str] should not type check
(since it leads to a runtime type error).
Furthermore the pygments ImageFormatter always expects BinaryIO,
no matter which constructor arguments are passed.
This commit addresses both problems.
0 commit comments