MCPcopy
hub / github.com/pathwaycom/pathway / intersect_keys

Method intersect_keys

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

Source from the content-addressed store, hash-verified

89 return type(self)(mapped_values)
90
91 def intersect_keys(self, other: ArgTuple) -> ArgTuple:
92 return type(self)({k: v for k, v in self.items() if k in other})
93
94 def subtract_keys(self, other: ArgTuple) -> ArgTuple:
95 return type(self)({k: v for k, v in self.items() if k not in other})

Callers 1

__call__Method · 0.80

Calls 1

itemsMethod · 0.95

Tested by

no test coverage detected