Tested that:
>>> from gi.repository import WebKit2 __main__:1: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
Tested that:
>>> from gi.repository import WebKit2 version( 'WebKit2' , '4.0') before import to ensure that the right version gets loaded.
__main__:1: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_