error: "bytes" has no attribute "tobytes" #1336
Labels
bug
Something isn't working
regression
Behavior has changed for worse with a release
stubs
Issues in stubs files (.pyi)
Bug report
What's wrong
mypy:
error: "bytes" has no attribute "tobytes"
Contrary to
shapely.LineString
thewkb
property ofdjango.contrib.gis.geos.LineString
is not of typebytes
, but of typememoryview
.django-stubs/django-stubs/contrib/gis/gdal/geometries.pyi
Lines 62 to 63 in 2e504df
How is that should be
Probably:
cc @ciscorn
Background information:
bytes
vsmemoryview
: python/typing@f6c17ddSystem information
python:3.9.16-bullseye
python
version: 3.9.16django
version: 4.1.4mypy
version: 0-991django-stubs
version: 1.13.2The text was updated successfully, but these errors were encountered: