# HG changeset patch # User Franz Glasner # Date 1779445869 -7200 # Node ID f506d752e8012b3622bfde974106fa98dfd724c8 # Parent 051c8877ee220b8b7b3f3d0c011fa9ad975e4761 FIX: the type of a is pygments.token._TokenType -- not pygments.token.Token diff -r 051c8877ee22 -r f506d752e801 docs/filters.rst --- a/docs/filters.rst Thu May 21 09:32:35 2026 +0200 +++ b/docs/filters.rst Fri May 22 12:31:09 2026 +0200 @@ -70,12 +70,12 @@ :Name: tokenreplace :Filter Options: ``replacements`` - **Type:** :py:class:`dict[str | pygments.token.Token, str | pygments.token.Token]` + **Type:** :py:class:`dict[str | pygments.token._TokenType, str | pygments.token._TokenType]` A map from tokens to their replacements. ``token_from`` - **Type:** :py:class:`str` or :py:class:`pygments.token.Token` + **Type:** :py:class:`str` or :py:class:`pygments.token._TokenType` The name of a token type (like ``Error``) or a token object (like :py:class:`pygments.token.Token.Error`). @@ -84,7 +84,7 @@ augmented with their respective values. ``token_to`` - **Type:** :py:class:`str` or :py:class:`pygments.token.Token` + **Type:** :py:class:`str` or :py:class:`pygments.token._TokenType` The name of a token type (like ``Generic.Error``) or a token object (like :py:class:`pygments.token.Token.Generic.Error`).