docs: Update some comments for the new release versioning scheme.

With the new scheme, the equivalent of 2.3 is 4.0.
This commit is contained in:
Mateusz Mandera 2020-06-25 11:13:33 +02:00 committed by Tim Abbott
parent 58bc175526
commit 85d4536486
2 changed files with 2 additions and 2 deletions

View File

@ -1130,7 +1130,7 @@ def process_notification(notice: Mapping[str, Any]) -> None:
# compatibility with events in that format still in the # compatibility with events in that format still in the
# queue at the time of upgrade. # queue at the time of upgrade.
# #
# TODO: Remove this block in release >= 2.3. # TODO: Remove this block in release >= 4.0.
user_ids: List[int] = [user['id'] for user in user_ids: List[int] = [user['id'] for user in
cast(List[Mapping[str, int]], users)] cast(List[Mapping[str, int]], users)]
else: else:

View File

@ -398,7 +398,7 @@ class UserActivityWorker(LoopQueueProcessingWorker):
# This is for compatibility with older events still stuck in the queue, # This is for compatibility with older events still stuck in the queue,
# that used the client name in event["client"] instead of having # that used the client name in event["client"] instead of having
# event["client_id"] directly. # event["client_id"] directly.
# TODO: This can be deleted for release >= 2.3. # TODO: This can be deleted for release >= 4.0.
if event["client"] not in self.client_id_map: if event["client"] not in self.client_id_map:
client = get_client(event["client"]) client = get_client(event["client"])
self.client_id_map[event["client"]] = client.id self.client_id_map[event["client"]] = client.id