Classes in Python - TypeError: object() takes no parameters
<p>I'm new to python, and I'm having a problem getting this little bit of code to work. I keep running into this same issue. When I run this I get the error message:</p>

<pre><code>TypeError: object() takes no parameters.
</code></pre>

<p>I've included the error message in full below.</p>

<p>Here's my code:</p>

<pre><code>class Bird:
    _type = ""

    def bird(self, type):
        self._type = type

    def display(self):
        print(self._type)


class Species:
    _bird = None
    _type = ""

    def set_bird(self, bird):
        self._bird = bird

    def display(self):
        print(self._type)
        self._bird.display(self)


class Cardinal(Species):
    def cardinal(self):
        self._type = "Cardinal"


def main():
    species = Cardinal()
    species.set_bird(Bird("Red"))
    species.display()


main()
</code></pre>

<p><a href="https://i.stack.imgur.com/JBM3r.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JBM3r.jpg" alt="error message"></a></p>