summaryrefslogtreecommitdiff
path: root/buildstream/_variables.py
diff options
context:
space:
mode:
authorChandan Singh <chandan@chandansingh.net>2019-07-16 22:08:28 +0100
committerChandan Singh <chandan@chandansingh.net>2019-07-16 22:24:19 +0100
commitfa6d9856c86e1fe72af02f4ef32267b66be49c75 (patch)
treee5f1fc18cb0156891ba011902124e480260481ed /buildstream/_variables.py
parentfbb8eea8334023e30c8719cb52f9b0e226b4eb8b (diff)
downloadbuildstream-chandan/enums.tar.gz
types.py: Derive enumerations from standard library classeschandan/enums
`types.py` defines a few enumerations, but only some of them are derived from the standard `enum.Enum` class. Among other things, this makes type checking difficult as the inferred type of the values is `<class 'int'>` or `<class 'str'>`, and not something like `<enum 'Scope'>`. Note that `Consistency` is derived from `IntEnum` and not `Enum`, since it is sometimes used in comparisons.
Diffstat (limited to 'buildstream/_variables.py')
0 files changed, 0 insertions, 0 deletions