style: Deal with unreachable code and pylint

https://pylint.pycqa.org/en/latest/whatsnew/3/3.2/index.html#what-s-new-in-pylint-3-2-4
This commit is contained in:
Florian Bruhin 2024-07-01 16:44:56 +02:00
parent aae05613b5
commit 5f50586ca4
1 changed files with 0 additions and 2 deletions

View File

@ -94,7 +94,6 @@ def _parse_yaml_type(
_raise_invalid_node(name, 'type', node)
try:
# pylint: disable=possibly-used-before-assignment
typ = getattr(configtypes, type_name)
except AttributeError:
raise AttributeError("Did not find type {} for {}".format(
@ -183,7 +182,6 @@ def _parse_yaml_backends(
elif isinstance(node, dict):
return _parse_yaml_backends_dict(name, node)
_raise_invalid_node(name, 'backends', node)
raise utils.Unreachable
def _read_yaml(