Check below: https://github.com/Python-SIP/sip/blob/4f0ca7fd43b941311e070051f637d931e17fa5d7/sipbuild/generator/outputs/code/code.py#L4836