/test/generic/pre_commit mypy

What happens

I been trying to make a commit, but the /test/generic/pre_commit job fails every time.

What do you understand or find about that problem

From what I understand and from what I’ve looked for the problem is the zipfile.py file.

Did you try any workaround? What did you do?

This file uses three functions, originally, the functions needed the *args to work correctly, but the /test/generic/pre_commit job fails for that wildcard. So I deleted the wildcard but now the mypy hook fails for the wrongly defined functions (because they don’t have the wildcard, or so I understand).

Evidences

This is the pipeline:

https://gitlab.com/autonomicjump/challenges/-/jobs/3212041311

And this is the python script

https://gitlab.com/autonomicjump/challenges/-/blob/renzo0211/vbd/vulnhub/0200-finding-my-friend/exploits/zipfile.py

I need help with

I need help in fixing the hook that is failing, thanks.

Hello,

You can check how to fix this problem on this page:

https://mypy.readthedocs.io/en/stable/error_code_list2.html

Regards,