@@ -57,7 +57,7 @@ class ActionModule(GitBase):
57
57
58
58
# pylint: disable=too-many-arguments
59
59
def __init__ ( # noqa: PLR0913
60
- self : T ,
60
+ self ,
61
61
connection : Connection ,
62
62
loader : DataLoader ,
63
63
play_context : PlayContext ,
@@ -91,7 +91,7 @@ def __init__( # noqa: PLR0913
91
91
self ._supports_async = True
92
92
self ._result : Result = Result ()
93
93
94
- def _check_argspec (self : T ) -> None :
94
+ def _check_argspec (self ) -> None :
95
95
"""Check the argspec for the action plugin.
96
96
97
97
:raises AnsibleActionFail: If the argspec is invalid
@@ -108,7 +108,7 @@ def _check_argspec(self: T) -> None:
108
108
err = "Token can not be an empty string"
109
109
raise AnsibleActionFail (err )
110
110
111
- def _configure_git_user_name (self : T ) -> None :
111
+ def _configure_git_user_name (self ) -> None :
112
112
"""Configure the git user name."""
113
113
command_parts = list (self ._base_command )
114
114
command_parts .extend (["config" , "--get" , "user.name" ])
@@ -131,7 +131,7 @@ def _configure_git_user_name(self: T) -> None:
131
131
self ._run_command (command = command )
132
132
self ._result .user_name = name
133
133
134
- def _configure_git_user_email (self : T ) -> None :
134
+ def _configure_git_user_email (self ) -> None :
135
135
"""Configure the git user email."""
136
136
command_parts = list (self ._base_command )
137
137
command_parts .extend (["config" , "--get" , "user.email" ])
@@ -154,7 +154,7 @@ def _configure_git_user_email(self: T) -> None:
154
154
self ._run_command (command = command )
155
155
self ._result .user_email = email
156
156
157
- def _add (self : T ) -> None :
157
+ def _add (self ) -> None :
158
158
"""Add files for the pending commit."""
159
159
command_parts = list (self ._base_command )
160
160
files = " " .join (self ._task .args ["include" ])
@@ -165,7 +165,7 @@ def _add(self: T) -> None:
165
165
)
166
166
self ._run_command (command = command )
167
167
168
- def _commit (self : T ) -> None :
168
+ def _commit (self ) -> None :
169
169
"""Perform a commit for the pending push."""
170
170
command_parts = list (self ._base_command )
171
171
message = self ._task .args ["commit" ]["message" ].format (play_name = self ._play_name )
@@ -177,7 +177,7 @@ def _commit(self: T) -> None:
177
177
)
178
178
self ._run_command (command = command )
179
179
180
- def _tag (self : T ) -> None :
180
+ def _tag (self ) -> None :
181
181
"""Create a tag object."""
182
182
command_parts = list (self ._base_command )
183
183
message = self ._task .args ["tag" ].get ("message" )
@@ -192,7 +192,7 @@ def _tag(self: T) -> None:
192
192
)
193
193
self ._run_command (command = command )
194
194
195
- def _push (self : T ) -> None :
195
+ def _push (self ) -> None :
196
196
"""Push the commit to the origin."""
197
197
command_parts = list (self ._base_command )
198
198
command_parts .extend (["remote" , "-v" ])
@@ -235,7 +235,7 @@ def _push(self: T) -> None:
235
235
line for line in command .stderr .split ("remote:" ) if "https" in line
236
236
).strip ()
237
237
238
- def _remove_repo (self : T ) -> None :
238
+ def _remove_repo (self ) -> None :
239
239
"""Remove the temporary directory."""
240
240
if not self ._task .args ["remove" ]:
241
241
return
@@ -247,7 +247,7 @@ def _remove_repo(self: T) -> None:
247
247
self ._result .msg = "Failed to remove repository"
248
248
249
249
def run (
250
- self : T ,
250
+ self ,
251
251
tmp : None = None ,
252
252
task_vars : Optional [Dict [str , JSONTypes ]] = None ,
253
253
) -> Dict [str , JSONTypes ]:
0 commit comments