We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d8c23 commit 5e349dcCopy full SHA for 5e349dc
cmd2.py
@@ -42,7 +42,6 @@
42
import sys
43
import tempfile
44
import traceback
45
-from typing import Union, Callable
46
import unittest
47
from code import InteractiveConsole
48
@@ -213,10 +212,13 @@ class RlType(Enum):
213
212
HELP_CATEGORY = 'help_category'
214
215
216
-def categorize(func: Union[Callable, Iterable], category: str):
217
- """
218
- Categorize a function
+def categorize(func, category):
+ """Categorize a function.
+
219
The help command output will group this function under the specified category heading
220
+ :param func: Union[Callable, Iterable] - function to categorize
221
+ :param category: str - category to put it in
222
"""
223
if isinstance(func, Iterable):
224
for item in func:
0 commit comments