-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors
Description
Using these versions
"xmltodict==1.0.2"
"types-xmltodict==v1.0.1.20250920"
I get this report by mypy
axis/models/event.py:198: error: Argument "namespaces" to "parse" has incompatible type "dict[str, None]"; expected "dict[str, str] | None" [arg-type] link to code
the type should be dict[str, str | None] not just dict[str, str]
The documentation for xmltodict explicitly states it can be None
>>> namespaces = {
... 'http://defaultns.com/': None, # skip this namespace
... 'http://a.com/': 'ns_a', # collapse "http://a.com/" -> "ns_a"
... }
Metadata
Metadata
Assignees
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors