Skip to content

23.2.13

Compare
Choose a tag to compare
@cooperlees cooperlees released this 13 Feb 18:02
· 115 commits to main since this release
  • B906: Add visit_Bytes, visit_Num and visit_Str to the list of visit_*
    functions that are ignored by the B906 check. The ast.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.