(
keyfunc: Callable[[Any], Any], ignore_unpopulated_attribute: bool
)
| 511 | |
| 512 | |
| 513 | def _mapped_collection_cls( |
| 514 | keyfunc: Callable[[Any], Any], ignore_unpopulated_attribute: bool |
| 515 | ) -> Type[KeyFuncDict[_KT, _KT]]: |
| 516 | class _MKeyfuncMapped(KeyFuncDict[_KT, _KT]): |
| 517 | def __init__(self, *dict_args: Any) -> None: |
| 518 | super().__init__( |
| 519 | keyfunc, |
| 520 | *dict_args, |
| 521 | ignore_unpopulated_attribute=ignore_unpopulated_attribute, |
| 522 | ) |
| 523 | |
| 524 | return _MKeyfuncMapped |
| 525 | |
| 526 | |
| 527 | MappedCollection = KeyFuncDict |
no outgoing calls
no test coverage detected