#34347 closed Cleanup/optimization (fixed)

Mypy complaint: module "django.contrib.gis.utils" does not explicitly export attribute "LayerMapping"

Reported by: Søren Howe Gersager Owned by: nobody
Component: GIS Version: 4.1
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Søren Howe Gersager)

Mypy complains that:
module "django.contrib.gis.utils" does not explicitly export attribute "LayerMapping"

Since the documentation uses that import path, for example: https://docs.djangoproject.com/en/4.1/ref/contrib/gis/layermapping/

I guess django.contrib.gis.utils.__init__ should contain __all__?

https://github.com/django/django/pull/16565

Change History (4)

comment:1 by Søren Howe Gersager, 21 months ago

Description: modified (diff)
Has patch: set
Version 0, edited 21 months ago by Søren Howe Gersager (next)

comment:2 by Tim Graham, 21 months ago

Component: UncategorizedGIS
Patch needs improvement: set
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:3 by Tim Graham, 21 months ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:4 by Mariusz Felisiak <felisiak.mariusz@…>, 21 months ago

Resolution: fixed
Status: newclosed

In eafe1468:

Fixed #34347 -- Added all to django.contrib.gis.utils.

Note: See TracTickets for help on using tickets.
Back to Top