-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Example:
class NoncomparableCallable:
def __call__(self, a):
pass
def __eq__(self, other):
1/0
import inspect
inspect.signature(NoncomparableCallable())
Real world example -- the result of functools.cmp_to_key()
(see also #118402).
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error