Clean up docstrings for context decorators
@@ -20,8 +20,11 @@ from functools import wraps
def adds_context(context, words=''):
- """
- Adds context to context manager.
+ """Decorator adding context to the Adapt context manager.
+
+ Arguments:
+ context (str): context Keyword to insert
+ words (str): optional string content of Keyword
"""
def context_add_decorator(func):
@wraps(func)
@@ -34,8 +37,10 @@ def adds_context(context, words=''):
def removes_context(context):
- """
- Removes context from the context manager.
+ """Decorator removing context from the Adapt context manager.
+
+ Arguments:
+ context (str): Context keyword to remove
"""
def context_removes_decorator(func):
@wraps(func)
