Skip to content

Commit

Permalink
fix codacy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Farouk-Echaref committed Feb 2, 2024
1 parent d9b16be commit f89aad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyccel/ast/builtin_objects/list_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ListAppend(PyccelInternalFunction):
def __init__(self, *args) -> None:
super().__init__(*args)
if not isinstance(args[1].dtype, type(args[0].dtype)):
errors.report('Argument of type {} is incompatible to list of type {}'.format(args[1].dtype, args[0].dtype),
errors.report(f'Argument of type {args[1].dtype} is incompatible with list of type {args[0].dtype}',
severity='fatal')


2 changes: 1 addition & 1 deletion pyccel/codegen/printing/pycode.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def _print_NumpyCountNonZero(self, expr):
arg = '{}, {}{}'.format(arr, axis, keep_dims)

return "{}({})".format(name, arg)

def _print_ListAppend(self, expr):
method_name = expr.name
dotted_var = self._print(expr.args[0])
Expand Down

0 comments on commit f89aad4

Please sign in to comment.