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:
parent
aae05613b5
commit
5f50586ca4
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue