Skip to content

Commit

Permalink
irc: versionadded annotations for AbstractBot.make_identifier*()
Browse files Browse the repository at this point in the history
  • Loading branch information
dgw committed Nov 9, 2023
1 parent 31e1c1e commit 46977b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sopel/irc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def hostmask(self) -> Optional[str]:
# Utility

def make_identifier(self, name: str) -> identifiers.Identifier:
"""Instantiate an Identifier using the bot's context."""
"""Instantiate an Identifier using the bot's context.
.. versionadded:: 8.0
"""
casemapping = {
'ascii': identifiers.ascii_lower,
'rfc1459': identifiers.rfc1459_lower,
Expand Down Expand Up @@ -260,6 +263,8 @@ def make_identifier_memory(self) -> memories.SopelIdentifierMemory:
identifier_factory=bot.make_identifier,
)
.. versionadded:: 8.0
.. seealso::
The :mod:`.tools.memories` module describes how to use
Expand Down

0 comments on commit 46977b6

Please sign in to comment.