{"id":19026591,"url":"https://github.com/sbdchd/django-stubs-bug-repo","last_synced_at":"2026-04-30T23:30:19.284Z","repository":{"id":152740712,"uuid":"238587995","full_name":"sbdchd/django-stubs-bug-repo","owner":"sbdchd","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-06T02:05:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T02:29:15.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbdchd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-06T02:02:17.000Z","updated_at":"2020-02-06T02:06:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d00edfe-9731-4256-945a-edfa09d75ea0","html_url":"https://github.com/sbdchd/django-stubs-bug-repo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fdjango-stubs-bug-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fdjango-stubs-bug-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fdjango-stubs-bug-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fdjango-stubs-bug-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbdchd","download_url":"https://codeload.github.com/sbdchd/django-stubs-bug-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240072199,"owners_count":19743545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:49:44.442Z","updated_at":"2026-04-30T23:30:19.228Z","avatar_url":"https://github.com/sbdchd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django stubs bug\n\nWhen not using `django.contrib.auth` app the django-stubs mypy plugin errors.\n\n\n```shell\npoetry install\n\n# if we run mypy we get a traceback\n\n❯ poetry run mypy --show-traceback --config-file mypy.ini .\n./core/views.py:6: error: INTERNAL ERROR -- Please try using mypy master on Github:\nhttps://mypy.rtfd.io/en/latest/common_issues.html#using-a-development-mypy-build\nPlease report a bug at https://github.com/python/mypy/issues\nversion: 0.761\nTraceback (most recent call last):\n  File \"mypy/checker.py\", line 399, in accept\n  File \"mypy/nodes.py\", line 1062, in accept\n  File \"mypy/checker.py\", line 2004, in visit_assignment_stmt\n  File \"mypy/checker.py\", line 2046, in check_assignment\n  File \"mypy/checker.py\", line 2746, in check_lvalue\n  File \"mypy/checkexpr.py\", line 1932, in analyze_ordinary_member_access\n  File \"mypy/checkmember.py\", line 126, in analyze_member_access\n  File \"mypy/checkmember.py\", line 143, in _analyze_member_access\n  File \"mypy/checkmember.py\", line 225, in analyze_instance_member_access\n  File \"mypy/checkmember.py\", line 376, in analyze_member_var_access\n  File \"mypy/checkmember.py\", line 593, in analyze_var\n  File \"/Users/steve/Downloads/django-attempt/.venv/lib/python3.7/site-packages/mypy_django_plugin/transformers/request.py\", line 11, in set_auth_user_model_as_type_for_request_user\n    model_cls = django_context.apps_registry.get_model(auth_user_model)\n  File \"/Users/steve/Downloads/django-attempt/.venv/lib/python3.7/site-packages/django/apps/registry.py\", line 205, in get_model\n    app_config = self.get_app_config(app_label)\n  File \"/Users/steve/Downloads/django-attempt/.venv/lib/python3.7/site-packages/django/apps/registry.py\", line 162, in get_app_config\n    raise LookupError(message)\nLookupError: No installed app with label 'auth'.\n./core/views.py:6: : note: use --pdb to drop into pdb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fdjango-stubs-bug-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbdchd%2Fdjango-stubs-bug-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fdjango-stubs-bug-repo/lists"}