More documentation improvements.
[pyutils.git] / src / pyutils / ansi.py
index 00323baaf8f71d9bcaff6b3bb86b4f59163fe2b3..3c289f9b5b4371ad9af3762bd2c6ea48bc6ca6dd 100755 (executable)
@@ -2269,10 +2269,10 @@ class ProgrammableColorizer(_StdoutInterceptor):
     could just as easily insert escape sequences returned from
     :py:meth:`fg`, :py:meth:`bg`, and :py:meth:`reset`.
 
-    >>> def red(match: re.Match, s: str) -> str:
+    >>> def red(match: re.Match) -> str:
     ...     return '[RED]'
 
-    >>> def reset(match: re.Match, s: str) -> str:
+    >>> def reset(match: re.Match) -> str:
     ...     return '[RESET]'
 
     >>> with ProgrammableColorizer( [ (re.compile('^[^ ]+'), red),