Skip to content

Commit dc8ed71

Browse files
committed
Support Never callables in plugins
I don't know how to test this.
1 parent 390388a commit dc8ed71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def extract_callable_type(self, inner_type: Type | None, ctx: Context) -> Callab
711711
"""Get type as seen by an overload item caller."""
712712
inner_type = get_proper_type(inner_type)
713713
outer_type: FunctionLike | None = None
714-
if inner_type is None or isinstance(inner_type, AnyType):
714+
if inner_type is None or isinstance(inner_type, (AnyType, UninhabitedType)):
715715
return None
716716
if isinstance(inner_type, TypeVarLikeType):
717717
inner_type = get_proper_type(inner_type.upper_bound)

0 commit comments

Comments
 (0)