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.
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.