mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-20 10:48:59 +00:00
Add basic typing for module_utils.
This commit is contained in:
parent
fb2f34ba85
commit
e74033eac1
48 changed files with 209 additions and 142 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue