Skip to content

Allow suppressing stack frame in lifecycle.deprecated() #2711

@dgw

Description

@dgw

Title. Occasionally, we want to mark certain things as deprecated that don't correspond to a particular function call or other "clean" location for a stack trace to point to.

For example, it's not helpful in #2699 to reference plugins/__init__.py:find_sopel_modules_plugins() in the bot's log output.

We could use something like None as a special value of the stack_frame parameter to suppress the trace output, or be more explicit with a new kwarg. Either works.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions