mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Issue 2226: Callable checked for the wrong abstract method.
This commit is contained in:
parent
972fb077a0
commit
10ac19bedc
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class Callable:
|
|||
__metaclass__ = ABCMeta
|
||||
|
||||
@abstractmethod
|
||||
def __contains__(self, x):
|
||||
def __call__(self, *args, **kwds):
|
||||
return False
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue