<reponame>jddixon/fieldz
# fieldz/enumSpec.py

"""
Enumeration of quantifiers.

CONSIDER ME DEPRECATED:
    This is replaced by Quants, a simple enumeration in fieldz/enum.py
"""

import sys

from fieldz.enum import SimpleEnum


# pylint: disable=too-few-public-methods
class QEnum(SimpleEnum):
    """
    This is actually another intertwined pair of enums: we want
    these values to map to  ['', '?', '*', '+'].
    """

    def __init__(self):
        super(QEnum, self).__init__(['REQUIRED', 'OPTIONAL', 'STAR', 'PLUS'])


# This allows us to import a reference to the class instance.
sys.modules[__name__] = QEnum()

# fieldz/enumSpec.py

"""
Enumeration of quantifiers.

CONSIDER ME DEPRECATED:
    This is replaced by Quants, a simple enumeration in fieldz/enum.py
"""

import sys

from fieldz.enum import SimpleEnum


# pylint: disable=too-few-public-methods
class QEnum(SimpleEnum):
    """
    This is actually another intertwined pair of enums: we want
    these values to map to  ['', '?', '*', '+'].
    """

    def __init__(self):
        super(QEnum, self).__init__(['REQUIRED', 'OPTIONAL', 'STAR', 'PLUS'])


# This allows us to import a reference to the class instance.
sys.modules[__name__] = QEnum()
# fieldz/enumSpec.py Enumeration of quantifiers.  CONSIDER ME DEPRECATED:     This is replaced by Quants, a simple enumeration in fieldz/enum.py # pylint: disable=too-few-public-methods This is actually another intertwined pair of enums: we want     these values to map to  ['', '?', '*', '+']. # This allows us to import a reference to the class instance.