summaryrefslogtreecommitdiff
path: root/oslo_utils/reflection.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_utils/reflection.py')
-rw-r--r--oslo_utils/reflection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/oslo_utils/reflection.py b/oslo_utils/reflection.py
index b964cf3..02f0c30 100644
--- a/oslo_utils/reflection.py
+++ b/oslo_utils/reflection.py
@@ -130,6 +130,7 @@ def get_callable_name(function):
def get_method_self(method):
+ """Gets the ``self`` object attached to this method (or none)."""
if not inspect.ismethod(method):
return None
try:
@@ -187,7 +188,7 @@ def _get_arg_spec(function):
def get_callable_args(function, required_only=False):
"""Get names of callable arguments.
- Special arguments (like *args and **kwargs) are not included into
+ Special arguments (like ``*args`` and ``**kwargs``) are not included into
output.
If required_only is True, optional arguments (with default values)