Skip to content

Commit

Permalink
fix tuple subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Dec 16, 2024
1 parent fc033c6 commit 3b5b311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usp/objects/sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os
import pickle
import tempfile
from typing import List, Iterator
from typing import List, Iterator, Tuple

from .page import SitemapPage

Expand Down Expand Up @@ -249,7 +249,7 @@ def __eq__(self, other) -> bool:
def __repr__(self):
return f"{self.__class__.__name__}(url={self.url}, pages={self.pages})"

def __getstate__(self) -> tuple[None, dict]:
def __getstate__(self) -> Tuple[None, dict]:
# Load slots of this class and its parents (mangling if appropriate)
obj_slots = {slot: getattr(self, slot) for slot in _all_slots(self.__class__)}
# Replace temp file path with actual content
Expand Down

0 comments on commit 3b5b311

Please sign in to comment.