- B906: Add
visit_Bytes
,visit_Num
andvisit_Str
to the list ofvisit_*
functions that are ignored by the B906 check. Theast.Bytes
,ast.Num
and
ast.Str
nodes are all deprecated, but may still be used by some codebases in
order to maintain backwards compatibility with Python 3.7. - B016: Warn when raising f-strings.
- Add B028: Check for an explicit stacklevel keyword argument on the warn method from the warnings module.
- Add B029: Check when trying to use
except
with an empty tuple i.e.except: ()
. - Add B032: Check for possible unintentional type annotations instead of assignments.