-
-
Notifications
You must be signed in to change notification settings - Fork 510
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersstubsIssues in stubs files (.pyi)Issues in stubs files (.pyi)
Description
Bug report
What's wrong
error: Item "MultiPolygonField" of "Union[MultiPolygonField, PolygonField]" has no attribute "srid" [union-attr]
error: Item "PolygonField" of "Union[MultiPolygonField, PolygonField]" has no attribute "srid" [union-attr]
How is that should be
At runtime, PolygonField
has a srid
attribute that is of type int
.
>>> type(self.geometry_field.srid)
<class 'int'>
Also see the Django source, where BaseSpatialField
has the srid
attribute:
System information
- OS: Docker image
python:3.9.16-bullseye
python
version: 3.9.16django
version: 4.1.4mypy
version: 0-991django-stubs
version: 1.13.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersstubsIssues in stubs files (.pyi)Issues in stubs files (.pyi)