(self, mapper: Mapper[Any])
| 236 | yield odd_path[i], even_path[i + 1] |
| 237 | |
| 238 | def contains_mapper(self, mapper: Mapper[Any]) -> bool: |
| 239 | _m_path = cast(_OddPathRepresentation, self.path) |
| 240 | for path_mapper in [_m_path[i] for i in range(0, len(_m_path), 2)]: |
| 241 | if path_mapper.mapper.isa(mapper): |
| 242 | return True |
| 243 | else: |
| 244 | return False |
| 245 | |
| 246 | def contains(self, attributes: Dict[Any, Any], key: Any) -> bool: |
| 247 | return (key, self.path) in attributes |