From aaf603d931b7e5023fd162acd4866aa45cbd0e43 Mon Sep 17 00:00:00 2001 From: Eduardo Rosendo Date: Wed, 29 Nov 2023 19:15:51 -0400 Subject: [PATCH] fix(opinion_page): Annotate a variable with its appropriate data type --- cl/opinion_page/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cl/opinion_page/types.py b/cl/opinion_page/types.py index 159021bf4c..92b1025f1c 100644 --- a/cl/opinion_page/types.py +++ b/cl/opinion_page/types.py @@ -54,6 +54,7 @@ def construct( citation_record: OpinionCluster | RECAPDocCitationRecord, request_query_string: str, ): + doc_type: Literal["opinion", "document"] if isinstance(citation_record, RECAPDocCitationRecord): top_authorities = [ ViewAuthority.from_recap_cit_record(