Skip to content

Commit 76ce71e

Browse files
committed
Widen arg type
1 parent f2cea60 commit 76ce71e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dispatch/fastapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(
5353
self,
5454
app: fastapi.FastAPI,
5555
endpoint: str | None = None,
56-
verification_key: Ed25519PublicKey | None = None,
56+
verification_key: Ed25519PublicKey | str | bytes | None = None,
5757
api_key: str | None = None,
5858
api_url: str | None = None,
5959
):
@@ -70,7 +70,7 @@ def __init__(
7070
7171
verification_key: Key to use when verifying signed requests. Uses
7272
the value of the DISPATCH_VERIFICATION_KEY environment variable
73-
by default. The environment variable is expected to carry an
73+
if omitted. The environment variable is expected to carry an
7474
Ed25519 public key in base64 or PEM format.
7575
If not set, request signature verification is disabled (a warning
7676
will be logged by the constructor).

0 commit comments

Comments
 (0)