The [Create a Python Binding for C++](https://freecad.github.io/DevelopersHandbook/technical/CreatePythonBindingForCpp#class-description-xml-file) page describes the old approach with XML files, but currently PYI files are used.