(self, other: ArgTuple)
| 95 | return type(self)({k: v for k, v in self.items() if k not in other}) |
| 96 | |
| 97 | def with_same_order(self, other: ArgTuple) -> ArgTuple: |
| 98 | assert self.is_key_subset_of(other) |
| 99 | ordered_content = {k: self[k] for k in other.keys() if k in self} |
| 100 | return type(self)(ordered_content) |
| 101 | |
| 102 | def with_keys_of(self, other: ArgTuple) -> ArgTuple: |
| 103 | assert len(self) <= len(other) |
no test coverage detected