Opened 21 months ago

Last modified 21 months ago

#34347 closed Cleanup/optimization

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

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 (1)

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

Description: modified (diff)
Has patch: set
Last edited 21 months ago by Tim Graham (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top