From 46977b61cd00c9112e12e6927fb31d1ab2215319 Mon Sep 17 00:00:00 2001 From: dgw Date: Wed, 8 Nov 2023 16:39:47 -0600 Subject: [PATCH] irc: `versionadded` annotations for `AbstractBot.make_identifier*()` --- sopel/irc/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sopel/irc/__init__.py b/sopel/irc/__init__.py index b1b8dafb6..e2a3b1fa8 100644 --- a/sopel/irc/__init__.py +++ b/sopel/irc/__init__.py @@ -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, @@ -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