Skip to content

Mixin failing on kwargs #4937

@Sult

Description

@Sult

I am pretty complexed
I am working with some class inheritance, and for some reason my init keeps erroring out with the message:
TypeError: function doesn't take keyword arguments

To try it out, i set all init methods to just be *args ,**kwargs, but i am still getting the same error
Below is a snippet of my code
https://gist.github.com/Sult/0108386e1d530a509ce8bcdc4f147af5

When i use 1 args:
sens = Waterpump(0)

function takes one positional arguments but 2 where given

if i use 1 named argument
function doesnt take keyword arguments

only when i use no input at all, it passes.

Can someone please explain what i am missing here?

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions