Skip to content

Commit ae60944

Browse files
binaryaaronmckornfieldrrxTaylorMutch
committed
[TASK] - PLAT-2934 - Upgrades python to 3.11.9 and changes python dep handling
Co-authored-by: Matt Kornfield <kornfield@gretel.ai> Co-authored-by: Ryan Sadler <ryan.sadler@gretel.ai> Co-authored-by: Taylor Mutch <taylor.mutch@gretel.ai> GitOrigin-RevId: bdaeebc8016b06f70b476d5c9d461af4260ee1f1
1 parent bfb39f5 commit ae60944

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pandas>=1.1.0,<2
44
protobuf>=4,<=4.24.0
55
rdt>=1.2,<1.3
66
sdv>=0.17,<0.18
7-
tqdm<5.0
7+
tqdm>=4.66,<5.0

src/gretel_synthetics/actgan/structures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import annotations
66

77
from dataclasses import asdict, dataclass
8-
from enum import Enum
8+
from enum import StrEnum
99
from typing import Any, Dict, List, TYPE_CHECKING
1010

1111
if TYPE_CHECKING:
@@ -16,12 +16,12 @@
1616
from gretel_synthetics.actgan.column_encodings import ColumnEncoding
1717

1818

19-
class ColumnType(str, Enum):
19+
class ColumnType(StrEnum):
2020
CONTINUOUS = "continuous"
2121
DISCRETE = "discrete"
2222

2323

24-
class ConditionalVectorType(str, Enum):
24+
class ConditionalVectorType(StrEnum):
2525
SINGLE_DISCRETE = "single_discrete"
2626
ANYWAY = "anyway"
2727
# TODO: add ANYWAY_WITH_MASK type so the generator input includes a 0/1 mask

src/gretel_synthetics/timeseries_dgan/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import asdict, dataclass
2-
from enum import Enum
2+
from enum import Enum, StrEnum
33

44

55
class OutputType(Enum):
@@ -142,7 +142,7 @@ def to_dict(self):
142142
return asdict(self)
143143

144144

145-
class DfStyle(str, Enum):
145+
class DfStyle(StrEnum):
146146
"""Supported styles for parsing pandas DataFrames.
147147
148148
See `train_dataframe` method in dgan.py for details.

src/gretel_synthetics/timeseries_dgan/dgan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ def state_dict(self) -> Dict:
12311231
return state
12321232

12331233
@abc.abstractmethod
1234-
def _state_dict() -> Dict:
1234+
def _state_dict(self) -> Dict:
12351235
"""Subclass specific dictionary for saving and loading."""
12361236
...
12371237

0 commit comments

Comments
 (0)