diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-11 17:24:45 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-11 17:24:45 +0100 |
commit | d36b3fd70b9bd34719fc4d08594563ef73759ee7 (patch) | |
tree | 14b1eda72de461280637fbf6341d862212e1c1b0 /pyblackbird_cc/resources/views.py | |
parent | a7afbfd090c3f059eeb0fe1573ca56f4c4cb9867 (diff) |
Cleaning up with ruff, typechecking, etc.
I am enabling lots of capability in neovim which is resulting in all
this. Don't be scared.
Diffstat (limited to 'pyblackbird_cc/resources/views.py')
-rw-r--r-- | pyblackbird_cc/resources/views.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py index c23efa9..ca7ce73 100644 --- a/pyblackbird_cc/resources/views.py +++ b/pyblackbird_cc/resources/views.py @@ -3,6 +3,7 @@ import os import tempfile from collections.abc import Generator from dataclasses import dataclass +from typing import Optional from django.conf import settings from django.contrib import messages @@ -45,10 +46,10 @@ class ResourceInfo: subcategories: str | None age_range: str | None pdf_filenames: list[str] - pdf_urls: list[str] + pdf_urls: list[Optional[str]] snapshot_urls: dict[str, list[str]] thumbnail_filenames: list[str] - thumbnail_urls: list[str] + thumbnail_urls: list[Optional[str]] feature_slot: int created: str updated: str |