mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 13:53:06 +00:00
Ensure that *everything* is typed in community.crypto (#917)
* Ensure that *everything* is typed in community.crypto. * Fix comment. * Ignore type definitions/imports and AssertionErrors for code coverage.
This commit is contained in:
@@ -58,10 +58,14 @@ from ansible_collections.community.crypto.plugins.plugin_utils._gnupg import (
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
def run(self, terms: list[t.Any], variables=None, **kwargs) -> list[str]:
|
||||
def run(
|
||||
self, terms: list[t.Any], variables: None = None, **kwargs: t.Any
|
||||
) -> list[str]:
|
||||
self.set_options(direct=kwargs)
|
||||
if self._loader is None:
|
||||
raise AssertionError("Contract violation: self._loader is None")
|
||||
raise AssertionError(
|
||||
"Contract violation: self._loader is None"
|
||||
) # pragma: no cover
|
||||
|
||||
try:
|
||||
gpg = PluginGPGRunner(cwd=self._loader.get_basedir())
|
||||
|
||||
Reference in New Issue
Block a user