When using the mapping interface, the value is returned as a string. In order to apply the git-config parsing rules, you can use :meth:`Config.get_bool` or :meth:`Config.get_int`.
(self, key: str | bytes)
| 138 | return True |
| 139 | |
| 140 | def __getitem__(self, key: str | bytes) -> str | None: |
| 141 | """ |
| 142 | When using the mapping interface, the value is returned as a string. In |
| 143 | order to apply the git-config parsing rules, you can use |
| 144 | :meth:`Config.get_bool` or :meth:`Config.get_int`. |
| 145 | """ |
| 146 | entry = self._get_entry(key) |
| 147 | |
| 148 | return entry.value |
| 149 | |
| 150 | def __setitem__(self, key: str | bytes, value: bool | int | str | bytes) -> None: |
| 151 | key = str_to_bytes(key, 'key') |
nothing calls this directly
no test coverage detected