From d3f3ba9d999091bae1d455afa9f1b94eea47f778 Mon Sep 17 00:00:00 2001 From: kwzrd Date: Tue, 9 Mar 2021 23:42:51 +0100 Subject: Branding: correctly annotate optional attribute --- bot/exts/backend/branding/_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/backend/branding/_repository.py b/bot/exts/backend/branding/_repository.py index e9d44417f..133231968 100644 --- a/bot/exts/backend/branding/_repository.py +++ b/bot/exts/backend/branding/_repository.py @@ -38,7 +38,7 @@ class RemoteObject: name: str # Filename path: str # Path from repo root type: str # Either 'file' or 'dir' - download_url: str + download_url: t.Optional[str] # If type is 'dir', this is None! def __init__(self, dictionary: t.Dict[str, t.Any]) -> None: """Initialize by grabbing annotated attributes from `dictionary`.""" -- cgit v1.2.3