|
1 | | -from typing import ClassVar, SupportsInt |
| 1 | +from typing import ClassVar |
| 2 | +from ._enums import CppEnum |
2 | 3 |
|
3 | 4 | __all__: list[str] = ["ARROW", "DEFAULT", "NATIVE", "SPECIAL", "FunctionNullHandling", "PythonUDFType"] |
4 | 5 |
|
5 | | -class FunctionNullHandling: |
| 6 | +class FunctionNullHandling(CppEnum): |
6 | 7 | DEFAULT: ClassVar[FunctionNullHandling] # value = <FunctionNullHandling.DEFAULT: 0> |
7 | 8 | SPECIAL: ClassVar[FunctionNullHandling] # value = <FunctionNullHandling.SPECIAL: 1> |
8 | 9 | __members__: ClassVar[ |
9 | 10 | dict[str, FunctionNullHandling] |
10 | 11 | ] # value = {'DEFAULT': <FunctionNullHandling.DEFAULT: 0>, 'SPECIAL': <FunctionNullHandling.SPECIAL: 1>} |
11 | | - def __eq__(self, other: object) -> bool: ... |
12 | | - def __getstate__(self) -> int: ... |
13 | | - def __hash__(self) -> int: ... |
14 | | - def __index__(self) -> int: ... |
15 | | - def __init__(self, value: SupportsInt) -> None: ... |
16 | | - def __int__(self) -> int: ... |
17 | | - def __ne__(self, other: object) -> bool: ... |
18 | | - def __setstate__(self, state: SupportsInt) -> None: ... |
19 | | - @property |
20 | | - def name(self) -> str: ... |
21 | | - @property |
22 | | - def value(self) -> int: ... |
23 | 12 |
|
24 | 13 | class PythonUDFType(CppEnum): |
25 | 14 | ARROW: ClassVar[PythonUDFType] # value = <PythonUDFType.ARROW: 1> |
26 | 15 | NATIVE: ClassVar[PythonUDFType] # value = <PythonUDFType.NATIVE: 0> |
27 | 16 | __members__: ClassVar[ |
28 | 17 | dict[str, PythonUDFType] |
29 | 18 | ] # value = {'NATIVE': <PythonUDFType.NATIVE: 0>, 'ARROW': <PythonUDFType.ARROW: 1>} |
30 | | - def __eq__(self, other: object) -> bool: ... |
31 | | - def __getstate__(self) -> int: ... |
32 | | - def __hash__(self) -> int: ... |
33 | | - def __index__(self) -> int: ... |
34 | | - def __init__(self, value: SupportsInt) -> None: ... |
35 | | - def __int__(self) -> int: ... |
36 | | - def __ne__(self, other: object) -> bool: ... |
37 | | - def __setstate__(self, state: SupportsInt) -> None: ... |
38 | | - @property |
39 | | - def name(self) -> str: ... |
40 | | - @property |
41 | | - def value(self) -> int: ... |
42 | 19 |
|
43 | 20 | ARROW: PythonUDFType # value = <PythonUDFType.ARROW: 1> |
44 | 21 | DEFAULT: FunctionNullHandling # value = <FunctionNullHandling.DEFAULT: 0> |
|
0 commit comments