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

Mypy reports "Module 'rx' has no attribute 'Observable'" since 3.1.1 #531

Closed
mysticfall opened this issue Jul 21, 2020 · 3 comments
Closed

Comments

@mysticfall
Copy link

I don't know what has changed, but after I updated to RxPy 3.1.1, mypy began to report such errors as "Module 'rx' has no attribute 'Observable'", possibly due to python/mypy/issues/7423.

It happens for all other major types such as BehaviorSubject, and changing [mypy] implicit_reexport in setup.cfg to True fixes the symptom.

mysticfall added a commit to mysticfall/alleycat-reactive that referenced this issue Jul 21, 2020
@jcafhe
Copy link
Collaborator

jcafhe commented Jul 24, 2020

I guess this is related to #524, for fixing #515. Before 3.1.1, rx was maybe silently unsupported by mypy in your project?

@mysticfall
Copy link
Author

@jcafhe I think what you suggested could be entirely possible since my project is just two weeks old, so it didn't have too much code before 3.1.1.

@dbrattli
Copy link
Collaborator

dbrattli commented Mar 5, 2022

This should be fixed in the latest --pre release and will be fixed in the next major release

@dbrattli dbrattli closed this as completed Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants