MCPcopy Index your code
hub / github.com/ipython/ipython / qtapi_version

Function qtapi_version

IPython/external/qt_loaders.py:160–179  ·  view source on GitHub ↗

Return which QString API has been set, if any Returns ------- The QString API version (1 or 2), or None if not set

()

Source from the content-addressed store, hash-verified

158
159
160def qtapi_version():
161 """Return which QString API has been set, if any
162
163 Returns
164 -------
165 The QString API version (1 or 2), or None if not set
166 """
167 try:
168 import sip
169 except ImportError:
170 # as of PyQt5 5.11, sip is no longer available as a top-level
171 # module and needs to be imported from the PyQt5 namespace
172 try:
173 from PyQt5 import sip
174 except ImportError:
175 return
176 try:
177 return sip.getapi('QString')
178 except ValueError:
179 return
180
181
182def can_import(api):

Callers 1

loaded_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…