From cc8b32ae2adec8a897f7b102a8f2c5892bd8283f Mon Sep 17 00:00:00 2001 From: Jose Drowne Date: Tue, 27 Jan 2026 19:54:18 -0500 Subject: [PATCH] Use Literal type for TomlParams.state field Co-Authored-By: Claude Opus 4.5 --- plugins/modules/toml_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/toml_file.py b/plugins/modules/toml_file.py index 468e7acb80..40d9613580 100644 --- a/plugins/modules/toml_file.py +++ b/plugins/modules/toml_file.py @@ -317,7 +317,7 @@ class TomlParams: "integer", "hex_integer", "octal_integer", "binary_integer", "float", "boolean", "datetime", "date", "time", "array", "inline_table", ] - state: str + state: t.Literal["absent", "present"] backup: bool create: bool follow: bool