sebastinas / pyrelic

Python bindings for relic
MIT License
7 stars 1 forks source link

pyrelic/_relic.pxd and pyrelic/_relic.pyi can be removed? #1

Closed duanbing closed 3 years ago

duanbing commented 3 years ago

Hi, When I build this repo after I deleted pxd and pyi, it works too. is it true?

duanbing commented 3 years ago

@sebastinas

sebastinas commented 3 years ago

They cannot be removed. pyrelic/_relic.pxd is required to produce pyrelic/_relic.c. So if the C code needs to be regenerated, cython won't be able to do that without the pxd file. pyrelic/_relic.pyi is consumed by type checkers such as mypy. If you don't care about type annotations, then you can remove it.