Skip to content

Deprecation warning on python 3.7 #114

Closed
pybind/pybind11
#1334
@knaveofdiamonds

Description

@knaveofdiamonds

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions