weixin_39633437
weixin_39633437
2020-12-08 18:24

Type stubs for bleach

For my own use, I have written type stubs for bleach: https://github.com/srittau/python-stubs/tree/master/stubs/bleach. With your permission I would like to include them in typeshed so they get included in future releases of type checkers like mypy.

The stubs are mostly complete, just the two html5lib filter classes are incomplete, partly because html5lib does not have type stubs, yet.

该提问来源于开源项目:mozilla/bleach

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39971172 weixin_39971172 5月前

    That sounds fine as long as it doesn't add work or additional obligations for me. If it does add work or obligations for me, then I'd like to understand what that work is before I commit to anything.

    点赞 评论 复制链接分享
  • weixin_39633437 weixin_39633437 5月前

    No work or obligations on your part. Typeshed contributors will maintain the stubs. It is my hope that eventually more packages will start shipping their own stubs (possibly by starting with the typeshed ones) per PEP 561, but this purely optional and maturing stubs in typeshed is a good idea anyway.

    点赞 评论 复制链接分享
  • weixin_39971172 weixin_39971172 5月前

    That sounds fine with me! Let me know if you need help with figuring out signatures, though... sounds like you're all set already.

    点赞 评论 复制链接分享
  • weixin_39971172 weixin_39971172 5月前

    Seems like there's no work to be done here, so I'm going to close this out.

    点赞 评论 复制链接分享

相关推荐