Skip to content

Conversation

kurtmckee
Copy link
Contributor

Recent example of a mypy CI failure:

readme_renderer/rst.py:26: error: Unused "type: ignore" comment  [unused-ignore]
readme_renderer/rst.py:33: error: Argument 1 of "emptytag" is incompatible with supertype "docutils.writers._html_base.HTMLTranslator"; supertype defines the argument type as "Element"  [override]
readme_renderer/rst.py:33: note: This violates the Liskov substitution principle
readme_renderer/rst.py:33: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides

The CI failures appear to be related to an updated release of types-docutils.

The failures were:

```
readme_renderer/rst.py:26: error: Unused "type: ignore" comment  [unused-ignore]
readme_renderer/rst.py:33: error: Argument 1 of "emptytag" is incompatible with supertype "docutils.writers._html_base.HTMLTranslator"; supertype defines the argument type as "Element"  [override]
readme_renderer/rst.py:33: note: This violates the Liskov substitution principle
readme_renderer/rst.py:33: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
```

The CI failures appear to be related to an updated release of `types-docutils`.
@kurtmckee
Copy link
Contributor Author

Well...shoot fire. The mypy tests now pass, but an unrelated issue has cropped up, and as with the mypy failures, the new issues are occurring in main with no code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant