1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-23 05:39:11 +00:00

[PR #11603/c8fe1e57 backport][stable-12] Fix typing imports (#11607)

Fix typing imports (#11603)

Fix typing imports.

(cherry picked from commit c8fe1e571f)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2026-03-15 19:53:36 +01:00 committed by GitHub
parent 292bb400eb
commit 7784fbdf17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View file

@ -100,8 +100,8 @@ result:
"""
import json
import typing as t
from http import HTTPStatus
from typing import Any
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.urls import fetch_url
@ -180,7 +180,7 @@ def upsert_secret(
key: str,
encrypted_value: str,
key_id: str,
) -> dict[str, Any]:
) -> dict[str, t.Any]:
"""Create or update a GitHub Actions secret."""
url = (
f"{api_url}/repos/{organization}/{repository}/actions/secrets/{key}"
@ -236,7 +236,7 @@ def delete_secret(
organization: str,
repository: str,
key: str,
) -> dict[str, Any]:
) -> dict[str, t.Any]:
"""Delete a GitHub Actions secret."""
url = (
f"{api_url}/repos/{organization}/{repository}/actions/secrets/{key}"
@ -323,7 +323,7 @@ def main() -> None:
params=module.params,
)
result: dict[str, Any] = {}
result: dict[str, t.Any] = {}
headers = {
"Accept": "application/vnd.github+json",