Skip to content

Instantly share code, notes, and snippets.

View ES-Alexander's full-sized avatar

ES-Alexander

View GitHub Profile
@plammens
plammens / unionenum.py
Last active November 10, 2023 18:39
Enum union in Python
"""
Enum union based on and compatible with the standard library's `enum`.
"""
# MIT License
#
# Copyright (c) 2020 Paolo Lammens
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal