(self, key: str | bytes)
| 128 | return entry |
| 129 | |
| 130 | def __contains__(self, key: str | bytes) -> bool: |
| 131 | err, cstr = self._get(key) |
| 132 | |
| 133 | if err == C.GIT_ENOTFOUND: |
| 134 | return False |
| 135 | |
| 136 | check_error(err) |
| 137 | |
| 138 | return True |
| 139 | |
| 140 | def __getitem__(self, key: str | bytes) -> str | None: |
| 141 | """ |
nothing calls this directly
no test coverage detected