# PyKrita-stubs

**URL:** <https://krita-artists.org/t/pykrita-stubs/38091>\
**Category:** Plugins Development\
**Created:** [March 11, 2022, 2:19pm UTC](https://krita-artists.org/t/pykrita-stubs/38091 "2022-03-11T14:19:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcyrus](https://krita-artists.org/user_avatar/krita-artists.org/tcyrus/32/40255_2.png) [@tcyrus](https://krita-artists.org/u/tcyrus)\
**Post date:** [March 11, 2022, 2:19pm UTC](https://krita-artists.org/t/pykrita-stubs/38091/1 "2022-03-11T14:19:59Z")

</div>

Generating typing stubs ([PEP 561](https://peps.python.org/pep-0561/)) should be as simple as added an extra flag. One example of this is [PyQt5-stubs](https://github.com/python-qt-tools/PyQt5-stubs).

If I’m understanding the CMake setup properly, all that needs to be added is `set(SIP_EXTRA_OPTIONS ${SIP_EXTRA_OPTIONS} --pep484-pyi)`. I doubt it’s actually that easy, but I believe it’s worth looking into.
