diff options
| author | Jason Madden <jamadden@gmail.com> | 2020-03-18 09:55:33 -0500 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2020-03-18 09:55:33 -0500 |
| commit | e1e94a0da968faa7d3f371b33e29734abd71e8a1 (patch) | |
| tree | ed2d18e9511dc5854627da34dda0238a8ae0c4d4 /src | |
| parent | f4b777d4a52f69aa2cbd79b285320e9c9f5726e9 (diff) | |
| download | zope-interface-issue190.tar.gz | |
More minor documentation fixups.issue190
Mostly formatting. Some interfaces were being documented as clasess, which doesn't work.
Diffstat (limited to 'src')
| -rw-r--r-- | src/zope/interface/interfaces.py | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/zope/interface/interfaces.py b/src/zope/interface/interfaces.py index 816144b..9ddf8f0 100644 --- a/src/zope/interface/interfaces.py +++ b/src/zope/interface/interfaces.py @@ -150,25 +150,26 @@ class IMethod(IAttribute): def getSignatureInfo(): """Returns the signature information. - This method returns a dictionary with the following keys: + This method returns a dictionary with the following string keys: - o `positional` - All positional arguments. - - o `required` - A list of all required arguments. - - o `optional` - A list of all optional arguments. - - o `varargs` - The name of the varargs argument. - - o `kwargs` - The name of the kwargs argument. + - positional + A sequence of the names of positional arguments. + - required + A sequence of the names of required arguments. + - optional + A dictionary mapping argument names to their default values. + - varargs + The name of the varargs argument (or None). + - kwargs + The name of the kwargs argument (or None). """ def getSignatureString(): """Return a signature string suitable for inclusion in documentation. This method returns the function signature string. For example, if you - have `func(a, b, c=1, d='f')`, then the signature string is `(a, b, - c=1, d='f')`. + have ``def func(a, b, c=1, d='f')``, then the signature string is ``"(a, b, + c=1, d='f')"``. """ class ISpecification(Interface): |
