Skip to content

morp007/EnumLike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Another enum for python (tested on Python 2.7.15, with PyCharm (linter)).

Quickstart:

from enum_like import EnumLike, Args


class A(EnumLike):
    pass


Args.VAR_1 = A(1)


def f(a):
    """
    Args:
        a(A)

    """
    print '{}'.format(a)


if __name__ == '__main__':
    f(Args.VAR_1)

Usage: See extended example in main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages