From 790355b6caf9eafa539738eab5973b2ea1b6e342 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:26:52 +0000 Subject: [PATCH] I have added Python type annotations for instance variables in the `__init__` method. I modified `Json2SharpLib/Emitters/Python/PythonClassEmitter.cs` to include type hints when assigning instance variables in the constructor body, which occurs when the `AddTypeHints` option is enabled. I also refactored the type hint generation for arrays into a reusable `GetArrayTypeHint` method and introduced a `GetPropertyType` helper to determine the correct Python types for properties, including objects and arrays. Finally, I updated the test expectation files in `Json2SharpTests/PythonTests/Models/Answers/` to match this new format and confirmed that all unit tests pass for the .NET 8.0 target.