Re: [PATCH v3 2/2] scripts: generate_rust_analyzer.py: fix IDE support for primitive types
From: Tamir Duberstein
Date: Mon Mar 09 2026 - 14:35:02 EST
On Sun, 08 Mar 2026 08:30:35 +0900, Jesung Yang <y.j3ms.n@xxxxxxxxx> wrote:
> diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
> index a4d25bb8b602..ab399f6044fa 100755
> --- a/scripts/generate_rust_analyzer.py
> +++ b/scripts/generate_rust_analyzer.py
> @@ -52,9 +52,11 @@ class CrateWithGenerated(Crate):
> source: Source
>
>
> -class RustProject(TypedDict):
> +# TODO: use `typing.NotRequired` when Python 3.11 is adopted.
> +class RustProject(TypedDict, total=False):
This is good. Could you please indicate which fields would be `NotRequired`?
--
Tamir Duberstein <tamird@xxxxxxxxxx>