@flake8ext
def no_mutable_default_args(logical_line):
 msg = "N329: Method's default argument shouldn't be mutable!"
 if checks.mutable_default_args.match(logical_line):
  (yield (0, msg))

@ flake8ext def no_mutable_default_args ( logical_line ) : msg = "N329: Method's default argument shouldn't be mutable!" if checks . mutable_default_args . match ( logical_line ) : ( yield ( 0 , msg ) )
check that mutable object isnt used as default argument n322: methods default argument shouldnt be mutable .