]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Overridden methods should have identical parameters
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sun, 26 Sep 2021 08:47:01 +0000 (10:47 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 26 Feb 2022 15:51:05 +0000 (16:51 +0100)
commit4a0601fac2c679e7af7b6948ce9d11d54de7f0a0
tree38af4258f97ea707722d2f64de9c2ca4b0cd1d62
parent4478dd532014ae244718ac5150deb1aacb1a5721
Overridden methods should have identical parameters

This fixes a DeepSource alert:

Mismatched parameters in overridden method

Python will allow this, but if the overridden method is intended to be
executed from external code, you may want to reconsider this.
Overriding a method without ensuring that both methods accept the
same number and type of parameters has the potential to cause an
error when the overriding method is called with a number of parameters
that is illegal for the overridden method. This violates the Liskov
substitution principle.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
trojans/tncc-emulate.py
www/html.py