Skip to content

Commit 65e356a

Browse files
committed
.
1 parent d2886ac commit 65e356a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/plugins/functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def partial_new_callback(ctx: mypy.plugin.FunctionContext) -> Type:
125125
if len(ctx.arg_types[0]) != 1:
126126
return ctx.default_return_type
127127

128-
if isinstance(ctx.arg_types[0][0], Overloaded):
128+
if isinstance(get_proper_type(ctx.arg_types[0][0]), Overloaded):
129129
# TODO: handle overloads, just fall back to whatever the non-plugin code does
130130
return ctx.default_return_type
131131
fn_type = ctx.api.extract_callable_type(ctx.arg_types[0][0], ctx=ctx.default_return_type)

0 commit comments

Comments
 (0)