(self, mapper: Mapper[Any])
| 270 | yield odd_path[i], even_path[i + 1] |
| 271 | |
| 272 | def contains_mapper(self, mapper: Mapper[Any]) -> bool: |
| 273 | _m_path = cast(_OddPathRepresentation, self.path) |
| 274 | for path_mapper in [_m_path[i] for i in range(0, len(_m_path), 2)]: |
| 275 | if path_mapper.mapper.isa(mapper): |
| 276 | return True |
| 277 | else: |
| 278 | return False |
| 279 | |
| 280 | def contains(self, attributes: Dict[Any, Any], key: Any) -> bool: |
| 281 | return (key, self.path) in attributes |