When adding typing I've discovered some strange (to me) code which is covered by tests and is present since CSS/XPath were added in 2013. Quoting tests:
Yet it was always documented that these functions take a "selector" in a form of "str".
Looks like we need to at least document this, as we will need to type these as Union[str, Iterable[str]]. We could remove it instead but I have no idea if it's used (I also have no idea about the actual use cases for this).
When adding typing I've discovered some strange (to me) code which is covered by tests and is present since CSS/XPath were added in 2013. Quoting tests:
Yet it was always documented that these functions take a "selector" in a form of "str".
Looks like we need to at least document this, as we will need to type these as
Union[str, Iterable[str]]
. We could remove it instead but I have no idea if it's used (I also have no idea about the actual use cases for this).