-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 error trying to check pymc3 #5560
Comments
Testing with
|
Here is a simple repro for the crash:
The repro includes an import cycle, but didn't find any obvious import cycles that part of PyMC3. Maybe the same crash happens if the base node gets deferred or something. I am not sure we can get the fix in the upcoming release (the schedule is a bit too tight), but it would be good to fix this before the following release beginning of October. |
I think there's an import cycle.
and then
Is this the kind of cycle you refer to? |
No, sorry -- my bad, I didn't understand the code when I wrote the above. The backends |
An import cycle is not an error, just a sign of suboptimal design/style. This sometimes happens in larger/older frameworks (even mypy has few import cycles). Sometimes it is hard to break import cycles (especially if you are working with large codebase), you can just wait few weeks until this issue is fixed. |
Thanks for the advice. I was hoping for a work-around since the PyMC3 code base is tricky and definitely has some type errors in it. This error seems to happen before mypy gets to doing any checking, so it means that mypy doesn't work at all on the PyMC3 code. |
Bug report, for the following error:
pymc3/backends/hdf5.py:101: error: INTERNAL ERROR -- please report a bug at https://github.com/python/mypy/issues version: 0.620
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
Tried testing the code in this repo:
origin [email protected]:rpgoldman/pymc3.git
See error report above.
No runtime error.
mypy 0.620, python 3.7.0
Will check and then update this ticket
mypy --show-traceback --ignore-missing-imports pymc3/ > /tmp/mypy-transcript.txt
the full traceback below.
The text was updated successfully, but these errors were encountered: