Fixes suppresses LGTM duplicate-code false positives again.
@@ -262,7 +262,7 @@ class StateRegistryImpl(state_registry.IStateRegistry):
def get_message_by_id(self, message_id: int) -> typing.Optional[messages.Message]:
return self._message_cache.get(message_id)
- def get_mandatory_message_by_id(
+ def get_mandatory_message_by_id( # lgtm [py/similar-function]
self,
message_id: int,
channel_id: int,
