#34347: Mypy complaint: module "django.contrib.gis.utils" does not explicitly
export attribute "LayerMapping"
-------------------------------------+-------------------------------------
Reporter: Søren Howe Gersager | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.1
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Søren Howe Gersager):
* has_patch: 0 => 1
Old description:
> 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!__?
New description:
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
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34347#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701865ff05ef6-48618014-fd8d-45ae-8ab6-7f2bc62882d8-000000%40eu-central-1.amazonses.com.