aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/unstructured_client/utils/enums.py
blob: 4d3aec17fe5787031623968f7d3b789840f57240 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

import enum

class OpenEnumMeta(enum.EnumMeta):
    def __call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1):
        # The `type` kwarg also happens to be a built-in that pylint flags as
        # redeclared. Safe to ignore this lint rule with this scope.
        # pylint: disable=redefined-builtin

        if names is not None:
            return super().__call__(value, names=names, module=module, qualname=qualname, type=type, start=start)

        try:
            return super().__call__(value, names=names, module=module, qualname=qualname, type=type, start=start)
        except ValueError:
            return value