From db67ecdd150b8fc559f0d175ffcb3de8317a3749 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 30 Nov 2026 16:56:23 +0100 Subject: [PATCH] chore: regenerate code references types Brings src/code_references/types.py back in sync with the live Flagsmith API schema, which has added a vcs_provider field to FeatureFlagCodeReferencesScan and reordered two fields. The check that caught this regenerates from api.flagsmith.com on every PR and diffs the result, so it drifts whenever the API changes rather than when this repo does. Nothing has run it since February, so the drift only surfaced now. No behaviour change: FeatureFlagCodeReferencesScan is generated but never imported, and CodeReferenceSubmit, the only type this repo actually uses, is unchanged. Co-Authored-By: Claude Opus 5 (1M context) --- src/code_references/types.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/code_references/types.py b/src/code_references/types.py index e7208d1..a9b97bf 100644 --- a/src/code_references/types.py +++ b/src/code_references/types.py @@ -1,7 +1,9 @@ # generated by datamodel-codegen: # filename: -from typing import NotRequired, TypedDict +from typing import Literal, NotRequired, TypedDict + +type VcsProviderEnum = Literal["github"] class CodeReferenceSubmit(TypedDict): @@ -12,7 +14,8 @@ class CodeReferenceSubmit(TypedDict): class FeatureFlagCodeReferencesScan(TypedDict): created_at: NotRequired[str] - repository_url: str project: NotRequired[int] + repository_url: str + vcs_provider: NotRequired[VcsProviderEnum] revision: str code_references: list[CodeReferenceSubmit]