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!__?
--
Ticket URL: <https://code.djangoproject.com/ticket/34347>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* 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>
* needs_better_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
* component: Uncategorized => GIS
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/34347#comment:2>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34347#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"eafe1468d228e6f63d044f787a9ffec82ec22746" eafe1468]:
{{{
#!CommitTicketReference repository=""
revision="eafe1468d228e6f63d044f787a9ffec82ec22746"
Fixed #34347 -- Added __all__ to django.contrib.gis.utils.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34347#comment:4>