-
-
Notifications
You must be signed in to change notification settings - Fork 3k
AssertionError mypy/server/deps.py:495 #8682
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
Did you figure out a solution? I'm having the same issue. |
No. I gave up trying use cache_fine_grained.
…On Wed, Jan 6, 2021 at 3:31 PM ZephyrBlu ***@***.***> wrote:
Did you figure out a solution? I'm having the same issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8682 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCEPVCEGGPCPR37XI5KMWTSYRX5JANCNFSM4MJTOFBA>
.
|
Got the same error when switching a project to python 3.10 with this config, not using [mypy]
plugins = strawberry.ext.mypy_plugin
ignore_missing_imports = False
check_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
warn_unused_ignores = True
warn_return_any = True
disallow_untyped_defs = True
scripts_are_modules = True
disallow_any_generics = False
# this is maximum hardcore
strict = False
|
Having the same problem with dmypy after an aiohttp update -- just got a minimal reproduction of the issue! See-also: #11456 |
christianbundy
added a commit
to christianbundy/mypy
that referenced
this issue
Nov 17, 2021
Problem: When using the fine-grained cache, we raise an assertion in some situations when an attribute is defined as `None`. Solution: Remove truthiness check to ensure that `None` is an allowed type. Fixes: python#8682 Fixes: python#11456
hauntsaninja
pushed a commit
that referenced
this issue
Dec 8, 2021
tushar-deepsource
pushed a commit
to DeepSourceCorp/mypy
that referenced
this issue
Jan 20, 2022
Problem: When using the fine-grained cache, we raise an assertion in some situations when an attribute is defined as `None`. Solution: Remove truthiness check to ensure that `None` is an allowed type. Fixes: python#8682 Fixes: python#11456
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm attempting to run mypy on an existning project, developed long before typing was a thing in python. Mypy (master) crashes with the below stack-trace. Shrinking the project is not doable,
but I can probably supply more info, if needed.
The assertion only fails when
mypy.ini
containscache_fine_grained = True
, but not otherwise.The text was updated successfully, but these errors were encountered: