Skip to content

Support for overloaded functions in stubgenc generated by pybind11 #5975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Jan 29, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix PEP8
  • Loading branch information
wiktorn committed Jan 29, 2019
commit e0ace0f676b204e8ab870af1b6d1aa803be0ad67
2 changes: 1 addition & 1 deletion mypy/stubgenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def generate_c_function_stub(module: ModuleType,
else:
inferred = [FunctionSig(name=name,
args=infer_arg_sig_from_docstring(
sigs.get(name, '(*args, **kwargs)')),
sigs.get(name, '(*args, **kwargs)')),
ret_type=ret_type)]

is_overloaded = len(inferred) > 1 if inferred else False
Expand Down