You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing osmium and running with warnings turned on or running under pytest produces the following deprecation warning on python 3.7.4 and 3.7.3:
_frozen_importlib:219: DeprecationWarning: __int__ returned non-int (type bool). The ability to return an instance of a strict subclass of int is deprecated, and may be removed in a future version of Python.
To replicate, create a file foo.py with:
import osmium
And then run python -Wd foo.py.
I can't see anything obvious in any of the python code, maybe this is something in the C++ bindings (which I don't know much about)?
The text was updated successfully, but these errors were encountered:
The problem is with the bool-typed enum classes osmium:geom:use_nodes and osmium:geom:direction. pybind11 seems to not properly translate them into their underlying type. There is a similar issue about char-typed enums and a PR with a fix for it. So I guess this needs digging into pybind11.
Importing osmium and running with warnings turned on or running under pytest produces the following deprecation warning on python 3.7.4 and 3.7.3:
To replicate, create a file foo.py with:
And then run
python -Wd foo.py
.I can't see anything obvious in any of the python code, maybe this is something in the C++ bindings (which I don't know much about)?
The text was updated successfully, but these errors were encountered: