Skip to content

Commit

Permalink
Loosen CachedOrderedDict._misses type annotation (#448)
Browse files Browse the repository at this point in the history
* Loosen CachedOrderedDict._misses type annotation

This will allow us to change `CachedOrderedDict._misses` to be ordered
in the future if we want.

* Upgrade requirements
  • Loading branch information
brainix committed Aug 30, 2021
1 parent d84b8db commit 0dde7b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pottery/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from typing import Any
from typing import Callable
from typing import ClassVar
from typing import FrozenSet
from typing import Collection
from typing import Hashable
from typing import Iterable
from typing import NamedTuple
Expand Down Expand Up @@ -254,7 +254,7 @@ def __init__(self,
items.append(item)
return super().__init__(items)

def misses(self) -> FrozenSet[JSONTypes]:
def misses(self) -> Collection[JSONTypes]:
return frozenset(self._misses)

@_set_expiration
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ toml==0.10.2
tqdm==4.61.2
twine==3.4.2
types-redis==3.5.7
typing-extensions==3.10.0.1
typing-extensions==3.10.0.2
urllib3==1.26.6
webencodings==0.5.1
zipp==3.5.0

0 comments on commit 0dde7b1

Please sign in to comment.