executablebooks / markdown-it-py

Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
https://markdown-it-py.readthedocs.io
MIT License
662 stars 68 forks source link

🔧 Improve typing for `MarkdownIt.add_render_rule` #287

Open chrisjsewell opened 1 year ago

chrisjsewell commented 1 year ago

Make the function signtature more explicit

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 91.66% and project coverage change: -0.03 :warning:

Comparison is base (bee6d19) 95.17% compared to head (a43a87b) 95.14%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #287 +/- ## ========================================== - Coverage 95.17% 95.14% -0.03% ========================================== Files 64 64 Lines 3437 3443 +6 ========================================== + Hits 3271 3276 +5 - Misses 166 167 +1 ``` | Flag | Coverage Δ | | |---|---|---| | pytests | `95.14% <91.66%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks) | Coverage Δ | | |---|---|---| | [markdown\_it/main.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvbWFpbi5weQ==) | `87.07% <50.00%> (ø)` | | | [markdown\_it/renderer.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcmVuZGVyZXIucHk=) | `98.27% <80.00%> (-0.84%)` | :arrow_down: | | [markdown\_it/parser\_block.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2Jsb2NrLnB5) | `91.83% <100.00%> (ø)` | | | [markdown\_it/parser\_core.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2NvcmUucHk=) | `100.00% <100.00%> (ø)` | | | [markdown\_it/parser\_inline.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcGFyc2VyX2lubGluZS5weQ==) | `95.52% <100.00%> (ø)` | | | [markdown\_it/ruler.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXIucHk=) | `87.78% <100.00%> (+0.18%)` | :arrow_up: | | [markdown\_it/rules\_block/state\_block.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXNfYmxvY2svc3RhdGVfYmxvY2sucHk=) | `86.95% <100.00%> (ø)` | | | [markdown\_it/rules\_inline/state\_inline.py](https://app.codecov.io/gh/executablebooks/markdown-it-py/pull/287?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=executablebooks#diff-bWFya2Rvd25faXQvcnVsZXNfaW5saW5lL3N0YXRlX2lubGluZS5weQ==) | `97.72% <100.00%> (+0.02%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.