Skip to content

Commit

Permalink
Satisfy mypi with Credential interface
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismeyersfsu committed Nov 22, 2024
1 parent 49aacb0 commit 7e63b28
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion _type_stubs/awx/main/models/credential.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Callable

from awx_plugins.interfaces._temporary_private_credential_api import ( # noqa: WPS436
Credential,
GenericOptionalPrimitiveType,
)

Expand All @@ -17,3 +16,18 @@ class ManagedCredentialType:
managed: bool = False,
custom_injector: Callable[[Credential, dict[str, GenericOptionalPrimitiveType], str], str | None] | None = None,
): ...


class Credential:
def __init__(
self,
inputs: dict[str, GenericOptionalPrimitiveType] | None = None,
) -> None: ...

def get_input(
self,
field_name: str,
default: GenericOptionalPrimitiveType = None,
) -> GenericOptionalPrimitiveType: ...

def has_input(self, field_name: str) -> bool: ...

0 comments on commit 7e63b28

Please sign in to comment.