chatnoir-eu / chatnoir-resiliparse

A robust web archive analytics toolkit
https://resiliparse.chatnoir.eu
Apache License 2.0
55 stars 9 forks source link

Type annotations #30

Open heinrichreimer opened 10 months ago

heinrichreimer commented 10 months ago

It would be incredibly useful for this library to include type annotations and to declare itself as a PEP 561 compliant stub package.

phoerious commented 10 months ago

All the native components come with text signatures, which do the same thing. Unfortunately, there is no automatic way to maintain stub packages with Cython at the moment. I think Cython 3.0.0 supports type annotations now, but it's absolutely unclear from the documentation what that actually means for our use case.