ignore =
E203,E305,E402,E501,E721,E741,F401,F403,F405,F821,F841,F999,W503,W504,C408,
# ignores below are temporary, fix them and remove please!
- B006,B007,B008,B902,B903
+ B007,B008,B902,B903
exclude = docs/src,venv,third_party,caffe2,scripts,docs/caffe2,tools/amd_build/pyHIPIFY,torch/lib/include,torch/lib/tmp_install,build,torch/include
self.pattern = pattern
self.filename = filename
- def substitute(self, env={}, **kwargs):
+ def substitute(self, env=None, **kwargs):
+ if env is None:
+ env = {}
+
def lookup(v):
return kwargs[v] if v in kwargs else env[v]
def enumerate_options_due_to_default(declaration,
- allow_kwarg=True, type_to_signature=[], remove_self=True):
+ allow_kwarg=True, type_to_signature=None, remove_self=True):
+
+ if type_to_signature is None:
+ type_to_signature = []
# Checks to see if an argument with a default keyword is a Tensor that
# by default can be NULL. In this case, instead of generating another