diff options
Diffstat (limited to 'sphinx/util/inspect.py')
| -rw-r--r-- | sphinx/util/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 1c38caa25..211703e07 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -317,7 +317,7 @@ def is_builtin_class_method(obj, attr_name): return getattr(builtins, safe_getattr(cls, '__name__', '')) is cls # type: ignore -class Parameter(object): +class Parameter: """Fake parameter class for python2.""" POSITIONAL_ONLY = 0 POSITIONAL_OR_KEYWORD = 1 @@ -334,7 +334,7 @@ class Parameter(object): self.annotation = self.empty -class Signature(object): +class Signature: """The Signature object represents the call signature of a callable object and its return annotation. """ |
