From 3768368057cd947cb00eada3b32e2cd119953a2b Mon Sep 17 00:00:00 2001 From: David McKee Date: Fri, 27 Sep 2024 12:53:12 +0100 Subject: [PATCH] Use Python 3.9 for jsonschema-gentypes to ensure backwards (and CI) compatibility --- .pre-commit-config.yaml | 1 + src/ds_caselaw_utils/courts_schema_types_autogenerated.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00dcc1a..ce0712e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,7 @@ repos: hooks: - id: jsonschema-gentypes files: src/ds_caselaw_utils/data/schema/courts.schema.json + language_version: python3.9 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.6.8 diff --git a/src/ds_caselaw_utils/courts_schema_types_autogenerated.py b/src/ds_caselaw_utils/courts_schema_types_autogenerated.py index 1273eff..762b91f 100644 --- a/src/ds_caselaw_utils/courts_schema_types_autogenerated.py +++ b/src/ds_caselaw_utils/courts_schema_types_autogenerated.py @@ -1,7 +1,8 @@ # Automatically generated file from a JSON schema -from typing import List, Required, TypedDict, Union +from typing import List, TypedDict, Union +from typing_extensions import Required class RawCourt(TypedDict, total=False):