File: secret.py

package info (click to toggle)
pydantic 2.12.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,640 kB
  • sloc: python: 75,984; javascript: 181; makefile: 115; sh: 38
file content (9 lines) | stat: -rw-r--r-- 210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from pydantic import Secret


def takes_secret(scalar_secret: Secret[str | int | float | bool]) -> None: ...


def secret_usage() -> None:
    secret: Secret[str] = Secret('my secret')
    takes_secret(secret)