Skip to content
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

'Cannot determine type of "<symbol>"' when circular dependencies #11513

Open
KotlinIsland opened this issue Nov 10, 2021 · 0 comments
Open

'Cannot determine type of "<symbol>"' when circular dependencies #11513

KotlinIsland opened this issue Nov 10, 2021 · 0 comments
Labels
bug mypy got something wrong topic-import-cycles

Comments

@KotlinIsland
Copy link
Contributor

KotlinIsland commented Nov 10, 2021

Is this even an error that you care about or throw intentionally?

my-app/
├─ main.py
├─ a.py
├─ b.py

main.py:

from b import B
from a import b

main = B()

a.py:

from b import b as b
from main import main

reveal_type(main)

b.py:

b = 1

class B:
    ...
> mypy main.py
a.py:4: error: Cannot determine type of "main"
@KotlinIsland KotlinIsland added the bug mypy got something wrong label Nov 10, 2021
@KotlinIsland KotlinIsland changed the title 'Cannot determine type of "..."' 'Cannot determine type of "<symbol>"' when circular dependencies Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-import-cycles
Projects
None yet
Development

No branches or pull requests

2 participants