"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pylint/checkers/classes/class_checker.py" between
pylint-2.14.2.tar.gz and pylint-2.14.3.tar.gz

About: pylint analyzes Python source code looking for bugs and signs of poor quality.

class_checker.py  (pylint-2.14.2):class_checker.py  (pylint-2.14.3)
skipping to change at line 1258 skipping to change at line 1258
) )
): ):
return return
break break
# Detect if the parameters are the same as the call's arguments. # Detect if the parameters are the same as the call's arguments.
params = _signature_from_arguments(function.args) params = _signature_from_arguments(function.args)
args = _signature_from_call(call) args = _signature_from_call(call)
if meth_node is not None: if meth_node is not None:
# Detect if the super method uses varargs and the function doesn't o
r makes some of those explicit
if meth_node.args.vararg and (
not function.args.vararg
or len(function.args.args) > len(meth_node.args.args)
):
return
def form_annotations(arguments): def form_annotations(arguments):
annotations = chain( annotations = chain(
(arguments.posonlyargs_annotations or []), arguments.annotat ions (arguments.posonlyargs_annotations or []), arguments.annotat ions
) )
return [ann.as_string() for ann in annotations if ann is not Non e] return [ann.as_string() for ann in annotations if ann is not Non e]
called_annotations = form_annotations(function.args) called_annotations = form_annotations(function.args)
overridden_annotations = form_annotations(meth_node.args) overridden_annotations = form_annotations(meth_node.args)
if called_annotations and overridden_annotations: if called_annotations and overridden_annotations:
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)