summaryrefslogtreecommitdiff
path: root/oslo_utils/reflection.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2015-04-13 09:00:39 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2015-04-13 10:49:20 -0700
commit3a7fca5e9dc02ae605ebd8d53ebc5b16eadee771 (patch)
tree7c31ddbcaa79216866034f433d2ec56c50b6af41 /oslo_utils/reflection.py
parent8c4bae31586c82ab6ee866ec276532fff823933b (diff)
downloadoslo-utils-3a7fca5e9dc02ae605ebd8d53ebc5b16eadee771.tar.gz
Add missing reflection + uuidutils docs
These do not seem to have been created and made appear, so make them appear and make sure the exposed public API(s) have docstrings so that they appear in the generated docs. Change-Id: Ie34e46647b0b20d936ddaa15dc824d0e2d2ca99d
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)