The reportPrivateUsage config is about the class of warning illustrated below:
Though mypy doesn't complain, pyright doesn't like exporting private variables, classes or types. However, given the widespread use of etree._Element (and a bunch of others), it makes sense to supress this kind of warning for pyright.
Thanks. Yeah, these warnings are really annoying. Mypy does it right here – if a type name starts with an underscore, then that's how it is. It's not a fault of the user (or anyone else, really).
The
reportPrivateUsage
config is about the class of warning illustrated below:Though mypy doesn't complain, pyright doesn't like exporting private variables, classes or types. However, given the widespread use of
etree._Element
(and a bunch of others), it makes sense to supress this kind of warning for pyright.