mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +00:00
Move IndexType alias inside TYPE_CHECKING block
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1ec4538a80
commit
fe89b60b80
1 changed files with 3 additions and 2 deletions
|
|
@ -304,8 +304,9 @@ class TomlFileError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
# Type alias for array-of-tables index (int for position, "append" for new entry, None for default)
|
||||
IndexType = t.Union[int, t.Literal["append"], None] # noqa: UP007 (Python 3.8/3.9 compat)
|
||||
if t.TYPE_CHECKING:
|
||||
# Type alias for array-of-tables index (int for position, "append" for new entry, None for default)
|
||||
IndexType = t.Union[int, t.Literal["append"], None] # noqa: UP007
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue