Skip to content

how to type check the xml element class #82

@ismail-s

Description

@ismail-s

I have been adding type hints to the xml module on this branch. Now, the Element class has one mandatory param which shoud be a str or bytes. But at in the Comment function the Comment function itself is passed in instead, and then this is used later on to identify that an element is a comment. An interesting way of checking this imo, but is there any way of dealing with thisʔ Atm, this will just mean the xml module will fail its own type check.

Also, if this issue should have been raised elsewhere, let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions