File: enum_repr.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 (5 lines) | stat: -rw-r--r-- 126 bytes parent folder | download
1
2
3
4
5
from enum import Enum


def repr_for_enum(enum):  # type: (Enum) -> str
    return "%s.%s" % (type(enum).__name__, enum.name)