mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix ansible-test type hints.
This commit is contained in:
@@ -79,8 +79,8 @@ class Git(object):
|
||||
def run_git_split(self, cmd, separator=None, str_errors='strict'):
|
||||
"""
|
||||
:type cmd: list[str]
|
||||
:param separator: str | None
|
||||
:type str_errors: 'strict' | 'replace'
|
||||
:type separator: str | None
|
||||
:type str_errors: str
|
||||
:rtype: list[str]
|
||||
"""
|
||||
output = self.run_git(cmd, str_errors=str_errors).strip(separator)
|
||||
@@ -93,7 +93,7 @@ class Git(object):
|
||||
def run_git(self, cmd, str_errors='strict'):
|
||||
"""
|
||||
:type cmd: list[str]
|
||||
:type str_errors: 'strict' | 'replace'
|
||||
:type str_errors: str
|
||||
:rtype: str
|
||||
"""
|
||||
return run_command(self.args, [self.git] + cmd, capture=True, always=True, str_errors=str_errors)[0]
|
||||
|
||||
Reference in New Issue
Block a user