class_docstr: The metaclass for BetterEnum.
docstr: Register a new EnumType
  
  :param args: args passed to super()
  :param kwargs: kwargs passed to super()
  :return: the registry class
docstr_tok: ["Register","a","new","EnumType",":","param","args",":","args","passed","to","super","(",")",":","param","kwargs",":","kwargs","passed","to","super","(",")",":","return",":","the","registry","class"]
code: def __new__(cls, *args, **kwargs):
      """Register a new EnumType
  
      :param args: args passed to super()
      :param kwargs: kwargs passed to super()
      :return: the registry class
      """
      _cls = super().__new__(cls, *args, **kwargs)
      return cls.register_class(_cls)
  
imports: from enum import Enum, EnumMeta, Flag, IntEnum
  from typing import List, Union
label_desc: Use image node_id 1 for calling the EnumType obj's underlying member method code with example usage: obj.__new__(cls) and returns: cls