Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bot: add deprecation notice to SopelWrapper #2521

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,14 @@ class SopelWrapper:
their ``bot`` argument. It acts as a proxy, providing the ``trigger``'s
``sender`` (source channel or private message) as the default
``destination`` argument for overridden methods.

.. deprecated:: 8.0

``SopelWrapper`` is being replaced with a ``contextvars`` based
alternative. For more information, see `#2460`__.

.. __: https://github.com/sopel-irc/sopel/issues/2460

"""
def __init__(self, sopel, trigger, output_prefix=''):
if not output_prefix:
Expand Down