Return the custom part class registered for `content_type`, or the default part class if no custom class is registered for `content_type`.
(cls, content_type: str)
| 197 | |
| 198 | @classmethod |
| 199 | def _part_cls_for(cls, content_type: str): |
| 200 | """Return the custom part class registered for `content_type`, or the default |
| 201 | part class if no custom class is registered for `content_type`.""" |
| 202 | if content_type in cls.part_type_for: |
| 203 | return cls.part_type_for[content_type] |
| 204 | return cls.default_part_type |
| 205 | |
| 206 | |
| 207 | class XmlPart(Part): |