Commit 10ac19be authored by Raymond Hettinger's avatar Raymond Hettinger

Issue 2226: Callable checked for the wrong abstract method.

parent 972fb077
......@@ -107,7 +107,7 @@ class Callable:
__metaclass__ = ABCMeta
@abstractmethod
def __contains__(self, x):
def __call__(self, *args, **kwds):
return False
@classmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment