As discussed at the Flamingo PTG meeting, run an automated
upgrade tool to make code python 3.10+ compliant.
Result of running:
$ pyupgrade --py310-plus $(git ls-files | grep ".py$")
Fixed PEP8 errors introduced by pyupgrade by running:
$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
--in-place neutron
Also did manual updates as necessary to fix other errors
and warnings after above commands.
Bumped versions of checkers - pylint, bandit and mypy to
more recent versions, which required disabling a new
warning, too-many-positional-arguments.
Change-Id: Ic6908af2c331e3ea6c50f1a8a8e261db41572645