Since pylint version 3.2.0 was released, our CI fails with these errors in the linting step (warnings emitted on current master 9e0562e1):
***** Module labgrid.util.yaml
labgrid/util/yaml.py:87:18: E0606: Possibly using variable 'items' before assignment (possibly-used-before-assignment)
We should probably raise a TypeError in an else clause.
***** Module labgrid.util.dict
labgrid/util/dict.py:39:33: E1133: Non-iterable value attr.fields(cls) is used in an iterating context (not-an-iterable)
***** Module labgrid.remote.common
labgrid/remote/common.py:178:24: E1135: Value 'fields' doesn't support membership test (unsupported-membership-test)
Since pylint version 3.2.0 was released, our CI fails with these errors in the linting step (warnings emitted on current master 9e0562e1):
We should probably raise a TypeError in an else clause.
Seems to be related to https://github.com/pylint-dev/pylint/issues/9626 (attr's pyi). Should be fixed in the next pylint release.
Probably caused by..
https://github.com/labgrid-project/labgrid/blob/9e0562e1c8d6842c850c239d64896b88c3bf3bd1/labgrid/util/agents/network_interface.py#L291-L295
@jluebbe How should we fix this?
Might also be related to https://github.com/pylint-dev/pylint/issues/9626 ?
I guess we should add an else clause raising an exception here as well?
Same here.
Same here.