diff options
| author | 2021-01-11 10:35:56 +0100 | |
|---|---|---|
| committer | 2021-01-11 10:35:56 +0100 | |
| commit | bf2d3d58dda76e7407b2d10f1dd9c89ce8f17d8f (patch) | |
| tree | 957fefaf43f94e6774e8028ea554d073b7ad43a0 | |
| parent | Return whitespace to its previous state (diff) | |
Fix docstring
The decorator works in revers to what the docstring explained
| -rw-r--r-- | bot/utils/function.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/function.py b/bot/utils/function.py index 5fd70e1e8..ab7f45761 100644 --- a/bot/utils/function.py +++ b/bot/utils/function.py @@ -108,7 +108,7 @@ def command_wraps( assigned: t.Sequence[str] = functools.WRAPPER_ASSIGNMENTS, updated: t.Sequence[str] = functools.WRAPPER_UPDATES, ) -> t.Callable[[types.FunctionType], types.FunctionType]: - """Update `wrapped` to look like the decorated function and update globals for discordpy forwardref evaluation.""" + """Update the decorated function to look like `wrapped` and update globals for discordpy forwardref evaluation.""" def decorator(wrapper: types.FunctionType) -> types.FunctionType: return functools.update_wrapper( update_wrapper_globals(wrapper, wrapped), wrapped, assigned, updated |