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 8, 2023
1 parent 61d9149 commit d953f68
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 d953f68

Please sign in to comment.