Closed alexmv closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
7ba8431
) 97.24% compared to head (3a37da4
) 97.22%.:exclamation: Current head 3a37da4 differs from pull request most recent head 66dd5ba. Consider uploading reports for the commit 66dd5ba to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@alexmv Thanks for the fix, it's a pretty good catch. I've left some comments, please let me know your feedback.
There are 2 files in conflicts as well as I've merged a big outstanding pull request https://github.com/Alir3z4/html2text/pull/392
Rebased and repushed. As I commented above, the if "x" in thing and thing["x"] is not None
pattern is apparently necessary for mypy type narrowing.
Thanks for the fix. In the coming days, I'll cut a release and the change will be available on PyPI.
Rather than have these throw an assert at runtime, it is more useful to have them act as if the attribute did not exist.