pysigned 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysigned
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Sign and verify URLs with an expiry, using HMAC or Ed25519
5
5
  Author: Meg Hicks
6
6
  Author-email: Meg Hicks <meg.d.hicks@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pysigned"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "Sign and verify URLs with an expiry, using HMAC or Ed25519"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -5,6 +5,8 @@ module is only imported by code that explicitly opts into it, so the core
5
5
  ``pysigned`` package stays installable without FastAPI.
6
6
  """
7
7
 
8
+ import collections.abc
9
+
8
10
  from typing import Iterable, Protocol
9
11
 
10
12
  from fastapi import Request, status
@@ -21,7 +23,7 @@ class KeysetGetter(Protocol):
21
23
  per-request state, e.g. fetching keys for a tenant from a database.
22
24
  """
23
25
 
24
- async def __call__(self, request: Request) -> KeySet:
26
+ async def __call__(self, request: Request) -> KeySet | Iterable:
25
27
  pass # pragma: no cover
26
28
 
27
29
 
@@ -54,7 +56,7 @@ class SignedRoute:
54
56
  def __init__(
55
57
  self,
56
58
  *,
57
- keyset: KeySet | None = None,
59
+ keyset: KeySet | collections.abc.Iterable | None = None,
58
60
  keyset_getter: KeysetGetter | None = None,
59
61
  signing_key_id: str = "",
60
62
  ignore_query_params: Iterable[str] | None = None,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes