typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Fix type of `transform` argument of `docutils.nodes.pending.__init__`

Open cpitclaudel opened this issue 1 year ago • 1 comments

The documentation says:

self.transform = transform
"""The `docutils.transforms.Transform` class implementing the pending
operation."""

cpitclaudel avatar Jul 30 '24 06:07 cpitclaudel

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Jul 30 '24 06:07 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

alectryon (https://github.com/cpitclaudel/alectryon)
+ alectryon/docutils.py:206: error: "type[Transform]" has no attribute "is_post_transform"  [attr-defined]

github-actions[bot] avatar Sep 06 '24 22:09 github-actions[bot]