Skip to content

Commit

Permalink
Without ClassVar test
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w committed Feb 25, 2024
1 parent 9ef5460 commit dcfa42e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/admin/options.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from django.http import HttpRequest
spherical_mercator_srid: int

class GeoModelAdminMixin:
gis_widget: ClassVar[type[OSMWidget]]
gis_widget: type[OSMWidget]
gis_widget_kwargs: ClassVar[dict[str, Any]]
def formfield_for_dbfield(self, db_field: Field, request: HttpRequest, **kwargs: Any) -> FormField: ...

Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,3 @@ django.urls.resolvers.URLPattern.lookup_str
django.urls.resolvers.URLResolver.url_patterns
django.urls.resolvers.URLResolver.urlconf_module
django.utils.connection.BaseConnectionHandler.settings

# Potential mypy bug with metaclass
django.contrib.gis.admin.options.GeoModelAdminMixin.gis_widget

0 comments on commit dcfa42e

Please sign in to comment.