Cache the fields dict for type. Args: type_obj: Type to be cached. Returns: A dictionary of fields for the type.
(type_obj: type)
| 458 | |
| 459 | @cache |
| 460 | def _attr_fields_dict_cache(type_obj: type) -> dict[str, attr.Attribute]: |
| 461 | """Cache the fields dict for type. |
| 462 | |
| 463 | Args: |
| 464 | type_obj: Type to be cached. |
| 465 | |
| 466 | Returns: |
| 467 | A dictionary of fields for the type. |
| 468 | """ |
| 469 | return attr.fields_dict(type_obj) |
| 470 | |
| 471 | |
| 472 | @cache |
no outgoing calls
no test coverage detected