@@ -30,7 +30,7 @@ class _RawConfParser:
30
30
def parse_ini_file (file_path : Path ) -> tuple [dict [str , str ], list [str ]]:
31
31
"""Parse and handle errors of an ini configuration file.
32
32
33
- Raises ' configparser.Error' .
33
+ Raises `` configparser.Error`` .
34
34
"""
35
35
parser = configparser .ConfigParser (inline_comment_prefixes = ("#" , ";" ))
36
36
# 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:
61
61
def parse_toml_file (file_path : Path ) -> tuple [dict [str , str ], list [str ]]:
62
62
"""Parse and handle errors of a toml configuration file.
63
63
64
- Raises ' tomllib.TOMLDecodeError' .
64
+ Raises `` tomllib.TOMLDecodeError`` .
65
65
"""
66
66
with open (file_path , mode = "rb" ) as fp :
67
67
content = tomllib .load (fp )
@@ -90,7 +90,7 @@ def parse_config_file(
90
90
) -> tuple [dict [str , str ], list [str ]]:
91
91
"""Parse a config file and return str-str pairs.
92
92
93
- Raises ' tomllib.TOMLDecodeError', ' configparser.Error' .
93
+ Raises `` tomllib.TOMLDecodeError``, `` configparser.Error`` .
94
94
"""
95
95
if file_path is None :
96
96
if verbose :
0 commit comments