Skip to content

Obscure TypeError when supplying unused kwargs to Gsolv #273

Description

@a-ws-m

Additional kwargs get passed to the super() class, which is Journalled. Journalled then passes them on to object, from which it inherits. This results in a slightly obscure error:

TypeError: object.__init__() takes exactly one argument (the instance to initialize)

It may be better to check for any extra keyword arguments in Journalled.__init__(), replacing the super().__init__() call.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions