Skip to content

SecretStr

Base classes

Name Children Inherits
Protocol
typing
Base class for protocol classes.

⋔ Inheritance diagram

graph TD
  2876508963["http_types.SecretStr"]
  1073422405["typing.Protocol"]
  3481597255["typing.Generic"]
  2751680898["builtins.object"]
  1073422405 --> 2876508963
  3481597255 --> 1073422405
  2751680898 --> 3481597255

🛈 DocStrings

Bases: Protocol

Protocol for secret string objects with get_secret_value() method.

Source code in src/anyenv/download/http_types.py
@runtime_checkable
class SecretStr(Protocol):
    """Protocol for secret string objects with get_secret_value() method."""

    def get_secret_value(self) -> str:
        """Get the secret value as a string."""
        ...

get_secret_value

get_secret_value() -> str

Get the secret value as a string.

Source code in src/anyenv/download/http_types.py
def get_secret_value(self) -> str:
    """Get the secret value as a string."""
    ...

:fa-brands-github: Show source on GitHub