ruff: Fix PLR6104 Use += to perform an augmented assignment directly.

This is a preview rule, not yet enabled by default.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-14 12:06:04 -07:00
committed by Tim Abbott
parent b96feb34f6
commit 1e9b6445a9
24 changed files with 39 additions and 43 deletions

View File

@@ -307,5 +307,5 @@ def generate_data_type(schema: Mapping[str, Any]) -> str:
else:
data_type = schema["type"]
if schema.get("nullable", False):
data_type = data_type + " | null"
data_type += " | null"
return data_type