Skip to content

Commit

Permalink
Merge pull request #2521 from SnoopJ/doc/warn-sopelwrapper-deprecated
Browse files Browse the repository at this point in the history
bot: add deprecation notice to SopelWrapper
  • Loading branch information
dgw authored Oct 14, 2023
2 parents ec9691b + 8060ab7 commit 981ceea
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 981ceea

Please sign in to comment.