Closed
Description
With UBL schemas, I found 2 problems in file common\ubl_xad_esv132_2_1.py:
- Mypy complains about the generic
Dict
type in a strict mode:
@dataclass
class AnyType:
any_element: List[object] = field(
default_factory=list,
metadata={
"type": "Wildcard",
"namespace": "##any",
"mixed": True,
},
)
any_attributes: Dict = field(
default_factory=dict,
metadata={
"type": "Attributes",
"namespace": "##any",
},
)
XML attributes are always strings, can we change that type hint to Dict[str, str]
?
- The type of inherited field
OtherTimeStampType.encapsulated_time_stamp
is different from the base class.
Metadata
Metadata
Assignees
Labels
No labels