Skip to content

Commit ac1dc51

Browse files
Fix spelling
1 parent e24e936 commit ac1dc51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pylint/config/config_file_parser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class _RawConfParser:
2828

2929
@staticmethod
3030
def parse_ini_file(file_path: Path) -> tuple[dict[str, str], list[str]]:
31-
"""Parse and handle errors of a ini configuration file.
31+
"""Parse and handle errors of an ini configuration file.
3232
33-
Raises configparser.Error
33+
Raises 'configparser.Error'.
3434
"""
3535
parser = configparser.ConfigParser(inline_comment_prefixes=("#", ";"))
3636
# Use this encoding in order to strip the BOM marker, if any.
@@ -61,7 +61,7 @@ def _ini_file_with_sections(file_path: Path) -> bool:
6161
def parse_toml_file(file_path: Path) -> tuple[dict[str, str], list[str]]:
6262
"""Parse and handle errors of a toml configuration file.
6363
64-
Raises tomllib.TOMLDecodeError
64+
Raises 'tomllib.TOMLDecodeError'.
6565
"""
6666
with open(file_path, mode="rb") as fp:
6767
content = tomllib.load(fp)
@@ -90,7 +90,7 @@ def parse_config_file(
9090
) -> tuple[dict[str, str], list[str]]:
9191
"""Parse a config file and return str-str pairs.
9292
93-
Raises tomllib.TOMLDecodeError, configparser.Error
93+
Raises 'tomllib.TOMLDecodeError', 'configparser.Error'.
9494
"""
9595
if file_path is None:
9696
if verbose:

0 commit comments

Comments
 (0)