summaryrefslogtreecommitdiff
path: root/src/flake8/api
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-06-28 09:36:24 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-06-28 09:36:24 -0500
commit2d3e277b1e0c0a24c30c611558692f95d14a8470 (patch)
treedc011a113fc68de72189478d727fd3851af7290c /src/flake8/api
parentec2e601cbf9a56c9bee2ee3cc22999c795c1c824 (diff)
downloadflake8-2d3e277b1e0c0a24c30c611558692f95d14a8470.tar.gz
Handle optional parameters that were never supported
Previously, pycodestyle never introspected the argument names for classes except to require that ``tree`` be an argument it could pass. For Flake8 3.0, we lifted that restriction, but old plugins seem to have cargo-culted their __init__ signature to be def __init__(self, tree, builtins=None): For some yet unknown reason. This was causing an AttributeError. By updating flake8.utils.parameters_for to return a dictionary that indicates whether the parameter is required or not, we can side-step this by simply ignoring the parameter if it has a default value and we cannot provide it. Closes #151
Diffstat (limited to 'src/flake8/api')
0 files changed, 0 insertions, 0 deletions