MCPcopy Index your code
hub / github.com/pathwaycom/pathway / with_same_order

Method with_same_order

python/pathway/internals/arg_tuple.py:97–100  ·  view source on GitHub ↗
(self, other: ArgTuple)

Source from the content-addressed store, hash-verified

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)

Callers 2

process_inputMethod · 0.80
__call__Method · 0.80

Calls 2

is_key_subset_ofMethod · 0.95
keysMethod · 0.45

Tested by

no test coverage detected