Otherwise there is a warning:
from gi.repository import GLib, NM __main__:1: PyGIWarning: NM was imported without specifying a version first. Use gi.require_version(NM, 1.0) before import to ensure that the right version gets loaded.
2837da9 examples/python: fix "import gi" in example
examples/python/gi/get-devices.py | 2 ++
1 file changed, 2 insertions(+)
Upstream: cgit.freedesktop.org