Skip to content

Validation error: Impure callable passed to @Pure parameter #730

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

A parameter with the @Pure annotation only accepts pure callables. Currently, this is not checked, however.

Desired solution

Show an error if an impure callable is passed to a @Pure parameter. This also applies to the default value of that parameter. If the function is marked as @Pure, this implies that all parameters are @Pure.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

Labels

releasedIncluded in a releasevalidation ✔️Improved or new static checks

Type

No type

Projects

Status

✔️ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions