You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
452 B
Python
23 lines
452 B
Python
"""Astroid hooks for the Python 2 qt4 module.
|
|
|
|
Currently help understanding of :
|
|
|
|
* PyQT4.QtCore
|
|
"""
|
|
|
|
from astroid import MANAGER, register_module_extender
|
|
from astroid.builder import AstroidBuilder
|
|
|
|
|
|
def pyqt4_qtcore_transform():
|
|
return AstroidBuilder(MANAGER).string_build('''
|
|
|
|
def SIGNAL(signal_name): pass
|
|
|
|
class QObject(object):
|
|
def emit(self, signal): pass
|
|
''')
|
|
|
|
|
|
register_module_extender(MANAGER, 'PyQt4.QtCore', pyqt4_qtcore_transform)
|