Menu

#352 The docstring of Transformer class is wrong

closed-fixed
nobody
None
5
2020-03-03
2018-09-30
No

It seems the docstring of Transformer class is wrong. The transforms is a 4-tuple, not 3-tuple.

class Transformer(TransformSpec):

    """
    Stores transforms (`Transform` classes) and applies them to document
    trees.  Also keeps track of components by component type name.
    """

    def __init__(self, document):
        self.transforms = []
        """List of transforms to apply.  Each item is a 3-tuple:
        ``(priority string, transform class, pending node or None)``."""
        ...

I just made a simple patch for this.

1 Attachments

Discussion

  • Günter Milde

    Günter Milde - 2018-11-21
    • status: open --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2018-11-21

    Fixed in r8238. Thanks for reporting and patch.

     

Log in to post a comment.

MongoDB Logo MongoDB