diff --git a/Lib/inspect.py b/Lib/inspect.py index 136701c7d62b9d..969e625f715acc 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -441,7 +441,7 @@ def isabstract(object): return True return False -def _getmembers(object, predicate=None, getter=None): +def _getmembers(object, predicate, getter): """Return all members of an object as (name, value) pairs sorted by name. Optionally, only return members that satisfy a given predicate.""" if isclass(object):