We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2886ac commit 65e356aCopy full SHA for 65e356a
mypy/plugins/functools.py
@@ -125,7 +125,7 @@ def partial_new_callback(ctx: mypy.plugin.FunctionContext) -> Type:
125
if len(ctx.arg_types[0]) != 1:
126
return ctx.default_return_type
127
128
- if isinstance(ctx.arg_types[0][0], Overloaded):
+ if isinstance(get_proper_type(ctx.arg_types[0][0]), Overloaded):
129
# TODO: handle overloads, just fall back to whatever the non-plugin code does
130
131
fn_type = ctx.api.extract_callable_type(ctx.arg_types[0][0], ctx=ctx.default_return_type)
0 commit comments