Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 redefinition of a method in a class: pylint warning
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
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 -*-

class Voiture:

    name = ""

    def __init__(self):
        print("je suis une voiture, je viens d'ête cree")

    def get_voiture_info(self):
        print("J'ai quatres roues et un moteur{}".format(

    def test(self):

class PSA(Voiture):
    def __init__(self):
        print("ici c'est PSA")

    def get_voiture_info(self, le_type):
        print("cette tuture est une de PSA de type {}".format(le_type))

    def test(self):

class Truc():
    yop = ""

    def __init__(self):

    def machin(self):
        print("le bidule{}".format(self.yop))

    def test(self):

VOITURE = Voiture()


# citroen = Citroen()
# citroen.machin()
Quote:A man is smoking a cigarette and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, “Can’t you see the warning on the cigarette pack? Smoking is hazardous to your health!”

To which the man replies, “I am a programmer. We don’t worry about warnings; we only worry about errors.”

on a more serious tone
ljmetzger likes this post

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  referencing another method in a class Skaperen 6 233 Jul-02-2020, 04:30 AM
Last Post: Skaperen
  How to emit a signal from another Class Method? SKDN 1 237 Jun-30-2020, 05:44 PM
Last Post: Yoriz
  calling on a method from one class into another class which is not a child NABA 5 216 Apr-29-2020, 07:49 PM
Last Post: deanhystad
  pylint question dcollett 0 155 Mar-26-2020, 08:49 PM
Last Post: dcollett
  Pylint/pyflakes/flake8 missed AttributeError elyoni 2 182 Feb-19-2020, 07:36 AM
Last Post: elyoni
  Pylint Statment Count Shangeetha 1 234 Dec-22-2019, 04:58 PM
Last Post: Larz60+
  threading for method outside class anna 0 195 Nov-17-2019, 07:05 AM
Last Post: anna
  how can I changing a base class method voidptr 2 255 Nov-10-2019, 10:53 PM
Last Post: voidptr
  How to Call a method of class having no argument dataplumber 7 812 Oct-31-2019, 01:52 PM
Last Post: dataplumber
  Call method from another method within a class anteboy65 3 503 Sep-11-2019, 08:40 PM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)