Skip to content

Building blocks should error if a passed parameter does not match any parameters. #482

@dappelha

Description

@dappelha

I misspelled an argument to a building block, and the building block basically didn't care that I tried to pass it nonsense.

example, misspell toolchain= and you silently do not use the toolchain you thought you were using :

mpi = openmpi(toolchainggg=compiler.toolchain)

I'm not a python pro--shouldn't there be a way if you pass arguments to a class and they don't match any argument keywords that there is an error? It would make sense to error if users are passing parameter names that are not found in the class.

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