Skip to content

Commit 238249b

Browse files
committed
Format the code with new version of black
1 parent 2d5c542 commit 238249b

22 files changed

Lines changed: 275 additions & 506 deletions

pydynamodb/connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .error import NotSupportedError
1111
from .util import RetryConfig, retry_api_call
1212

13-
1413
if TYPE_CHECKING:
1514
from botocore.client import BaseClient
1615

pydynamodb/sql/ddl_alter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
SSESpecification.KMSMasterKeyId $$$$$$$$
110110
TableClass STANDARD_INFREQUENT_ACCESS
111111
"""
112+
112113
import logging
113114
from .ddl_sql import DdlBase
114115
from .common import KeyWords, Tokens

pydynamodb/sql/ddl_drop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
DROP GLOBAL TABLE Issues
1212
ReplicationGroup (us-east-1, us-west-2)
1313
"""
14+
1415
import logging
1516
from .ddl_sql import DdlBase
1617
from .common import KeyWords, Tokens

pydynamodb/sql/dml_delete.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1414
DELETE FROM "Music" WHERE "Artist" = 'Acme Band' AND "SongTitle" = 'PartiQL Rocks' RETURNING ALL OLD *
1515
"""
16+
1617
import logging
1718
from .dml_sql import DmlBase
1819
from .common import KeyWords, Tokens

pydynamodb/sql/dml_insert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
------------------------
1010
INSERT INTO "Music" value {'Artist' : 'Acme Band','SongTitle' : 'PartiQL Rocks'}
1111
"""
12+
1213
import logging
1314
from .dml_sql import DmlBase
1415
from .common import KeyWords, Tokens

pydynamodb/sql/dml_select.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
ConsistentRead False
3232
ReturnConsumedCapacity NONE
3333
"""
34+
3435
import logging
3536
import re
3637
from abc import ABCMeta

pydynamodb/sql/dml_update.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
REMOVE AwardDetail.Grammys[2]
2121
WHERE Artist='Acme Band' AND SongTitle='PartiQL Rocks'
2222
"""
23+
2324
import logging
2425
from .dml_sql import DmlBase
2526
from .json_parser import jsonArray, jsonObject

pydynamodb/superset_dynamodb/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_config_value(config_name: str, **kwargs) -> Optional[Union[str, int]]:
101101
return kwargs[config_name]
102102
else:
103103
if config_name in SUPPORTED_QUERYDB_CONFIG:
104-
(env_name, default_val) = SUPPORTED_QUERYDB_CONFIG[config_name]
104+
env_name, default_val = SUPPORTED_QUERYDB_CONFIG[config_name]
105105
env_val = os.getenv(env_name, None)
106106
if env_val is None:
107107
return default_val

pydynamodb/superset_dynamodb/pydynamodb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def execute(self, **kwargs) -> None:
9292
cursor.execute_statement(self._statement)
9393
self._load_into_query_db(cursor.result_set)
9494

95-
(desc_, results_) = self._query_db.query()
95+
desc_, results_ = self._query_db.query()
9696
self._rows.extend(results_)
9797
for d in desc_:
9898
self._metadata.update(

pydynamodb/superset_dynamodb/querydb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ def add_cache(self) -> None:
260260
"""INSERT INTO %s (query_id, statement,
261261
created, last_updated, queried_times
262262
) VALUES (?, ?, ?, ?, ?)
263-
"""
264-
% QueryDB.CACHE_TABLE,
263+
""" % QueryDB.CACHE_TABLE,
265264
(
266265
self.query_id,
267266
str(self.statement.api_request),

0 commit comments

Comments
 (0)