Matej Spiller Muys

Results 109 comments of Matej Spiller Muys

``` [mypy] warn_return_any = True warn_unused_configs = True disallow_untyped_defs = False ignore_missing_imports = True # follow_imports = normal follow_imports = skip files = api,account,apps,common plugins = mypy_django_plugin.main [mypy.plugins.django-stubs] DJANGO_SETTINGS_MODULE =...

Also tested with: django-stubs==1.8.0 -> WORKS django-stubs==1.9.0 -> not working

I upgraded to django-stubs==4.2.0 and django-stubs-ext==4.2.0 and it is still completely broken: ``` Traceback (most recent call last): File "mypy/checkexpr.py", line 4881, in accept File "mypy/nodes.py", line 1881, in accept...

Hm hard to reproduce but it crashes at line: qry = models.DocumentRevision.objects.annotate( ``` obsolete_at_filter_expression = (Q(obsolete_at__gte=datetime.datetime.now()) | Q(obsolete_at__isnull=True),) # type: ignore # noqa: E501 if 'show_obsolete' in filtering and filtering['show_obsolete']:...

And another crash after I comment annotate in previous one: ``` data = ( models.SomeEvent.objects.values('exception_name').order_by().annotate(Count('exception_name')) ) ``` ``` Traceback (most recent call last): File "mypy/checkexpr.py", line 4881, in accept File...

We use 4.1.9 Django now (different as in original bug, but same bug). The key that is searched for type info couple of lines before in transfomers/models.py: ``` annotated_typeinfo =...

How did you disable mypy cache youself? If I disable it using official docs it still does not work. ``` django-stubs==4.2.3 django-stubs-ext==4.2.2 mypy==1.4.1 django==4.1.9 ``` ``` version: 1.4.1 Traceback (most...

Thank you for the fast answer. It seems my case is a bit different for some reason because it does not work in my case: mypy --cache-dir=/dev/null --show-traceback --no-incremental ```...

I have managed to reproduce the issue with the following sample: [bug_report3.tar.gz](https://github.com/typeddjango/django-stubs/files/11971528/bug_report3.tar.gz) Inside is runme script ``` #!/bin/bash set -eu -o pipefail rm -rf .venv rm -rf .mypy_cache python3.11 -m...

@sobolevn I tried the patch with the reproducable in previous comment, but it does not work:(https://github.com/typeddjango/django-stubs/pull/1613/files#diff-e548f38fb43163048bb2a1c1a209654cbee3c97d5ca25cfe16ca0abc5065e7c6). It seems to go: (.venv) ➜ bug_report mypy sample --show-traceback sample.document_revision -> added print(print(file.fullname))...