@@ -171,7 +171,7 @@ def __init__(self, path: PathLike | str, /) -> None:
171171
172172 :param path: The path to the configuration file to load as a string or path-like
173173 value.
174- :raises IOError : If the path specified does not exist or could not be opened.
174+ :raises OSError : If the path specified does not exist or could not be opened.
175175 """
176176 ...
177177
@@ -206,7 +206,7 @@ def __init__(
206206
207207 :param path: The path to the configuration file to load as a string or path-like
208208 value.
209- :raises IOError : If the path specified does not exist or could not be opened.
209+ :raises OSError : If the path specified does not exist or could not be opened.
210210
211211 **Overload 3: __init__(c_config, is_snapshot)**
212212
@@ -290,9 +290,9 @@ def __contains__(self, name: str | bytes) -> bool:
290290 def __getitem__ (self , name : str | bytes ) -> str | None :
291291 """Obtain the first value found for a config var with name ``name``.
292292
293- Looks for a config var with name ``name`` and returns its value as a string
294- or ``None`` if the config var exists but the value is empty . If you want to
295- apply the Git config parsing rules, use :meth:`Config.get_bool` or
293+ Looks for a config var with name ``name`` and returns its value as a string,
294+ or ``None`` if the config var is a valueless flag . If you want to apply the
295+ Git config parsing rules, use :meth:`Config.get_bool` or
296296 :meth:`Config.get_int` instead of ``[name]``.
297297
298298 If the config var found is a multivar, only the first value is returned. To
@@ -699,7 +699,7 @@ def get_system_config() -> 'Config':
699699 The system configuration file is the one found at ``/etc/gitconfig`` or
700700 ``%PROGRAMFILES%\\ Git\\ etc\\ gitconfig``, depending on the operating system.
701701
702- :raises IOError : If the configuration file is not found.
702+ :raises OSError : If the configuration file is not found.
703703 """
704704 return Config ._from_found_config (C .git_config_find_system )
705705
@@ -712,7 +712,7 @@ def get_global_config() -> 'Config':
712712 at the XDG-compatible user config file location (for that, see
713713 :meth:`Config.get_xdg_config`).
714714
715- :raises IOError : If the configuration file is not found.
715+ :raises OSError : If the configuration file is not found.
716716 """
717717 return Config ._from_found_config (C .git_config_find_global )
718718
@@ -724,7 +724,7 @@ def get_xdg_config() -> 'Config':
724724 This file is located at ``$HOME/.config/git/config``. This will not find the file
725725 at the standard user config location (for that, see :meth:`Config.get_global_config`).
726726
727- :raises IOError : If the configuration file is not found.
727+ :raises OSError : If the configuration file is not found.
728728 """
729729 return Config ._from_found_config (C .git_config_find_xdg )
730730
0 commit comments