File: environ.py

package info (click to toggle)
trash-cli 0.24.5.26-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,972 kB
  • sloc: python: 9,789; sh: 121; makefile: 11
file content (13 lines) | stat: -rw-r--r-- 237 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

from typing import Dict

Environ = Dict[str, str]


def cast_environ(env,
                 ):  # type: (...) -> Environ
    if env == os.environ:
        return env
    else:
        raise ValueError("env must be os.environ")