eyeseast / python-frontmatter

Parse and manage posts with YAML (or other) frontmatter
http://python-frontmatter.rtfd.io
MIT License
333 stars 42 forks source link

Adding type hints #110

Closed tusharsadhwani closed 10 months ago

tusharsadhwani commented 12 months ago

Would you consider a PR adding type hints to the project?

If not, I can create a sister project called types-frontmatter that only contains type hints, that is an okay approach as well.

eyeseast commented 12 months ago

Yes, type hints are great and I'm happy to have them in this project. I think every supported version of Python supports them, but please double check that.

tusharsadhwani commented 12 months ago

Yeah, there are some caveats but it's trivial to support python 3.7+ with types.

tusharsadhwani commented 12 months ago

@eyeseast PR is ready to review.

eyeseast commented 11 months ago

Haven't forgotten this. Just had to get through the holiday.

tusharsadhwani commented 10 months ago

@eyeseast Friendly reminder. I also added a py.typed file as per PEP 561.