bugbear21.4.3

B305 .next() is not a thing on Python 3

.next() is not a thing on Python 3. Use the next() builtin. For Python 2 compatibility, use six.next().

Extra parameters

These are defined by flake8-bugbear in the code and define the behavior of the violation. That's why we decided to print them here, for your reference.
Parameter Value
methods
  • next
valid_paths
  • builtins
  • future.utils
  • six