Skip to content

Commit

Permalink
fix: Migrate from attr.dataclass to dataclasses.dataclass (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
samithdisal authored Sep 21, 2023
1 parent 4be2ed3 commit fc02536
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hip_data_tools/etl/adwords_to_athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import List, Any, Optional, Tuple

from attr import dataclass
from dataclasses import dataclass
from pandas import DataFrame

from hip_data_tools.common import LOG
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/adwords_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np
import pandas as pd
from attr import dataclass
from dataclasses import dataclass
from googleads.adwords import ServiceQueryBuilder, ReportQuery
from pandas import DataFrame

Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/athena_to_athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Optional, List

from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.aws.athena import AthenaUtil
from hip_data_tools.aws.common import AwsConnectionSettings, AwsConnectionManager
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/athena_to_cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
handle ETL of data from Athena to Cassandra
"""
from typing import Optional, List
from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.apache.cassandra import CassandraConnectionSettings
from hip_data_tools.aws.athena import AthenaUtil
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/athena_to_dataframe.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
handle ETL of data from Athena to Pandas Dataframe
"""
from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.aws.athena import AthenaUtil
from hip_data_tools.aws.common import AwsConnectionSettings, AwsConnectionManager
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/athena_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Optional, List

from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.aws.athena import AthenaUtil
from hip_data_tools.aws.common import AwsConnectionSettings, AwsConnectionManager
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/google_sheet_to_athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Module to deal with data transfer from Google sheets to Athena
"""

from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.aws.athena import AthenaUtil, get_table_settings_for_dataframe
from hip_data_tools.aws.common import AwsConnectionManager
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/google_sheet_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Module to deal with data transfer from Google sheets to S3
"""

from attr import dataclass
from dataclasses import dataclass

from hip_data_tools.aws.common import AwsConnectionManager
from hip_data_tools.aws.common import AwsConnectionSettings
Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/etl/s3_to_cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Optional, List

from attr import dataclass
from dataclasses import dataclass
from cassandra.datastax.graph import Result
from cassandra import ConsistencyLevel

Expand Down
2 changes: 1 addition & 1 deletion hip_data_tools/google/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from abc import ABC, abstractmethod
from typing import List

from attr import dataclass
from dataclasses import dataclass
from oauth2client.service_account import ServiceAccountCredentials

from hip_data_tools.common import SecretsManager, ENVIRONMENT, KeyValueSource
Expand Down

0 comments on commit fc02536

Please sign in to comment.