From 7a109160d92ccc1544e2d81550f83991b24f7cd0 Mon Sep 17 00:00:00 2001 From: David McKee Date: Fri, 27 Sep 2024 11:10:39 +0100 Subject: [PATCH] fix --- src/ds_caselaw_utils/courts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ds_caselaw_utils/courts.py b/src/ds_caselaw_utils/courts.py index e4f6e08..13cce76 100644 --- a/src/ds_caselaw_utils/courts.py +++ b/src/ds_caselaw_utils/courts.py @@ -66,8 +66,8 @@ def __init__(self, court: Court, jurisdiction: Jurisdiction) -> None: self.jurisdictions: list[Jurisdiction] = [] @property - def code(self) -> str: - return "/".join((self.court.code, self.jurisdiction.code)) + def code(self) -> CourtCode: + return CourtCode("/".join((self.court.code, self.jurisdiction.code))) @property def name(self) -> str: