-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TypeVar not assignable to itself in steam.py #6009
Comments
This is because you have a snarl of circular dependencies in your code.
Pyright already handles many forms of circular dependencies, but it doesn't handle this one. I'll look for ways to extend the logic to handle this. I noticed that you're importing a bunch of symbols under a |
I'll see if I can get rid of them going forwards but I feel like there's not much I can do bar put everything in one massive file |
I'm going to close this as "won't fix". Try to eliminate the circular dependencies within your code. |
Describe the bug
I think I've managed to get myself down to the last few type bugs in my library and the last one that's confusing me is a TypeVar that's not assignable to itself when joining types to the return types.
but it is joinable when I use cast even though it should be for the same TypeVar. Unfortunately I can't figure out a minimal repro for it (sorry to keep sending these things I can't find minimal repros for).
Code
git clone https://github.com/Gobot1234/steam.py
poetry install
VS Code extension or command-line
pyright 1.1.328
The text was updated successfully, but these errors were encountered: