From 9c826877b87119740586fa92a14e680c66e5b43f Mon Sep 17 00:00:00 2001 From: halcy Date: Fri, 14 Feb 2025 20:11:42 +0200 Subject: [PATCH] small fix for 3.8 compat --- mastodon/preferences.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon/preferences.py b/mastodon/preferences.py index bebce13..76efb3e 100644 --- a/mastodon/preferences.py +++ b/mastodon/preferences.py @@ -9,7 +9,7 @@ from mastodon.utility import api_version from mastodon.internals import Mastodon as Internals from mastodon.return_types import Preferences, Marker, Status, IdType from mastodon.types_base import AttribAccessDict, try_cast_recurse -from typing import Union, List +from typing import Union, List, Dict class Mastodon(Internals): ### @@ -49,7 +49,7 @@ class Mastodon(Internals): # Writing data: Read markers ## @api_version("3.0.0", "3.0.0", _DICT_VERSION_MARKER) - def markers_set(self, timelines: Union[str, List[str]], last_read_ids: Union[Status, IdType, List[Status], List[IdType]]) -> dict[str, Marker]: + def markers_set(self, timelines: Union[str, List[str]], last_read_ids: Union[Status, IdType, List[Status], List[IdType]]) -> Dict[str, Marker]: """ Set the "last read" marker(s) for the given timeline(s) to the given id(s)