aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2021-03-09 23:42:51 +0100
committerGravatar kwzrd <[email protected]>2021-03-13 12:39:42 +0100
commitd3f3ba9d999091bae1d455afa9f1b94eea47f778 (patch)
treeb2f4bae65f6fabe38ed987c18b2417b7004e3e83
parentBranding: make event instances aware of their location (diff)
Branding: correctly annotate optional attribute
-rw-r--r--bot/exts/backend/branding/_repository.py2
1 files changed, 1 insertions, 1 deletions
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`."""