Add GeoModelAdminMixin
I have made things!
https://github.com/django/django/blob/main/django/contrib/gis/admin/options.py#L6
Related issues
Should it be ignored?
error: django.contrib.gis.admin.options.GeoModelAdminMixin.gis_widget variable differs from runtime type django.forms.widgets.MediaDefiningClass Stub: in file /home/runner/work/django-stubs/django-stubs/django-stubs/contrib/gis/admin/options.pyi:13 Type[django.contrib.gis.forms.widgets.OSMWidget]
I propose to ignore it for now with a comment (in stubtest_allowlist.txt) and report it to mypy. This looks like a bug to me.
Cant reproduce it https://mypy-play.net/?mypy=latest&python=3.12&flags=strict&gist=eef085e1ca215019969827514448b88b
@q0w you need stubtest, not mypy to reproduce it.
Oh, ok, its reproducible
Assigned to @sobolevn. If you don't want to lead the review here, feel free to unassign yourself.