Hello,
I try to redefine a method class (get_voiture_info) but pytlint (1.8) doesn't like what I wrote, and I don't anderstand why, what should I do to correct it? thank you
I try to redefine a method class (get_voiture_info) but pytlint (1.8) doesn't like what I wrote, and I don't anderstand why, what should I do to correct it? thank you
pylint.exe test.py No config file found, using default configuration ************* Module test W: 36, 4: Parameters differ from overridden 'get_voiture_info' method (arguments-differ) ------------------------------------------------------------------ Your code has been rated at 9.63/10 (previous run: 9.63/10, +0.00)Here is the source code:
# -*- coding: utf-8 -*- """ blabal """ class Voiture: """ blabla """ name = "" def __init__(self): """bl""" print("je suis une voiture, je viens d'ête cree") def get_voiture_info(self): """bl""" print("J'ai quatres roues et un moteur{}".format(self.name)) def test(self): """lkj""" pass class PSA(Voiture): """ blblbl """ def __init__(self): """bl""" print("ici c'est PSA") super().__init__() def get_voiture_info(self, le_type): """bl""" print("cette tuture est une de PSA de type {}".format(le_type)) def test(self): """h""" pass class Truc(): """ blllll """ yop = "" def __init__(self): """bl""" pass def machin(self): """bl""" print("le bidule{}".format(self.yop)) def test(self): """r""" pass VOITURE = Voiture() PSA = PSA() PSA.get_voiture_info("C4") # citroen = Citroen() # citroen.machin()