We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5617d8 commit a5f7692Copy full SHA for a5f7692
src/azul/terra.py
@@ -5,7 +5,10 @@
5
from collections.abc import (
6
Sequence,
7
)
8
-import enum
+from enum import (
9
+ StrEnum,
10
+ auto,
11
+)
12
import json
13
import logging
14
from time import (
@@ -95,13 +98,13 @@
95
98
96
99
@attrs.frozen(kw_only=True)
97
100
class TDRSourceSpec(SourceSpec):
- class Type(enum.Enum):
- bigquery = 'bigquery'
- parquet = 'parquet'
101
+ class Type(StrEnum):
102
+ bigquery = auto()
103
+ parquet = auto()
104
- class Domain(enum.Enum):
- gcp = 'gcp'
- azure = 'azure'
105
+ class Domain(StrEnum):
106
+ gcp = auto()
107
+ azure = auto()
108
109
type: Type
110
domain: Domain
0 commit comments