-
-
Notifications
You must be signed in to change notification settings - Fork 3k
stubgen: mangles from _typeshed import Incomplete on Windows #16658
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
Comments
@Josverl hi! I think it's outdated issue |
I can prove it still reproduces with stubgen 1.15.0. @makridenko Why do you think it is outdated ? |
@Josverl I've tried to reproduce it with master-branch stubgen and it works fine. I guess we need to wait for release |
Perhaps to be clearer Expected from _typeshed import Incomplete
def polar(*args, **kwargs) -> Incomplete So the bug is still not resolved. |
Do we have a test case for that? |
@sobolevn I can add the test that's in the screenshot above |
Ill verify the current state as I can't explain why the behavior is different for @makridenko than for me. That might also mean that the test case is not covering the all relevant aspects. Ill report back here. |
@sobolevn Im sorry , but i need to report that the issue indeed is not fixed. Is stubgen tested on anything but Ubuntu ? ( there are a lot of tests skipped on Windows) |
a few points.
|
Uh oh!
There was an error while loading. Please reload this page.
Bug Report
When stubgen creates stubs for a module that imports
Incomplete
, it then mangles / overcomplicates the import in the generated stubedit : On Windows
To Reproduce - minimal repro
running stubgen results in
Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: