Skip to content

stubgen: import List[module #9970

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

Closed
hiaselhans opened this issue Jan 26, 2021 · 1 comment
Closed

stubgen: import List[module #9970

hiaselhans opened this issue Jan 26, 2021 · 1 comment
Labels
bug mypy got something wrong

Comments

@hiaselhans
Copy link

hiaselhans commented Jan 26, 2021

Bug Report

stubgen created C++ stubs are wrong.

To Reproduce

I created a nested pybind11 module.

mymodule

  • submodule1
  • submodule2

then ran stubgen -p mymodule

Expected Behavior

correct stubs should be generated

Actual Behavior

in submodule1.pyi:

import List[mymodule.submodule1

also __init__ functions are overloaded with return type of the class.

Your Environment

  • Mypy version used: 0.790
  • Mypy command-line flags:
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: 3.9.1
  • Operating system and version: archlinux
@hiaselhans hiaselhans added the bug mypy got something wrong label Jan 26, 2021
@AWhetter
Copy link
Contributor

AWhetter commented Apr 4, 2021

This was fixed in mypy v0.800 via #8939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

3 participants