Skip to content

How to emit warnings #106

@gipert

Description

@gipert

We should do that uniformly. Also the current stacklevel=0 is not correct I guess, since it's also printing warnings.warn(msg, stacklevel=0). maybe we should use a wrapper like:

def warn(message):
    warnings.warn(message, RuntimeWarning, stacklevel=2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions