mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Add basic typing for module_utils.
This commit is contained in:
@@ -14,6 +14,6 @@ from __future__ import annotations
|
||||
from ansible.module_utils.ansible_release import __version__ as ansible_version
|
||||
|
||||
|
||||
def get_user_agent(module):
|
||||
def get_user_agent(module: str) -> str:
|
||||
"""Retrieve a user-agent to send with LinodeClient requests."""
|
||||
return f"Ansible-{module}/{ansible_version}"
|
||||
|
||||
Reference in New Issue
Block a user