Fix incorrect return value type of _copy_included_file (#85472)

pull/85589/head
Martin Krizek 4 months ago committed by GitHub
parent ac5eb232e9
commit fcb829f724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,6 +53,9 @@ from ansible.utils.sentinel import Sentinel
from ansible.utils.vars import combine_vars
from ansible.vars.clean import strip_internal_keys, module_response_deepcopy
if t.TYPE_CHECKING:
from ansible.playbook.role_include import IncludeRole
display = Display()
__all__ = ['StrategyBase']
@ -799,7 +802,7 @@ class StrategyBase:
return ret_results
def _copy_included_file(self, included_file: IncludedFile) -> IncludedFile:
def _copy_included_file(self, included_file: IncludedFile) -> TaskInclude | IncludeRole:
"""
A proven safe and performant way to create a copy of an included file
"""

Loading…
Cancel
Save