Python enum.IntFlag() Examples

The following are 1 code examples of enum.IntFlag(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module enum , or try the search function .
Example #1
Source File: _tovs_defs.py    From typhon with MIT License 4 votes vote down vote up
def _combine_enums(name, *args):
    return enum.IntFlag(
        name,
        [(i.name, i.value) for i in
            itertools.chain(*args)])