Skip to content

Commit a23926f

Browse files
committed
Added docstring to with_ansi_style test decorator.
1 parent 401bb8b commit a23926f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def base_app() -> cmd2.Cmd:
9595

9696

9797
def with_ansi_style(style: ru.AllowStyle) -> Callable[[Callable[P, T]], Callable[P, T]]:
98+
"""Decorator which sets ru.ALLOW_STYLE before a function runs and restores it when it's done."""
99+
98100
def arg_decorator(func: Callable[P, T]) -> Callable[P, T]:
99101
import functools
100102

0 commit comments

Comments
 (0)