Skip to content

Commit 6cb65ec

Browse files
committed
fix formatting
1 parent 04221c1 commit 6cb65ec

22 files changed

+23
-31
lines changed

aws_advanced_python_wrapper/pg_driver_dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,4 @@ def supports_abort_connection(self) -> bool:
175175
return True
176176

177177
def get_driver_module(self) -> ModuleType:
178-
return psycopg
178+
return psycopg

aws_advanced_python_wrapper/tortoise/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"cast": {
2929
"minsize": int,
3030
"maxsize": int,
31-
"connect_timeout": float,
31+
"connect_timeout": int,
3232
"echo": bool,
3333
"use_unicode": bool,
34-
"pool_recycle": int,
3534
"ssl": bool,
35+
"use_pure": bool,
3636
},
37-
}
37+
}

aws_advanced_python_wrapper/tortoise/backend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.
13+
# limitations under the License.

aws_advanced_python_wrapper/tortoise/backend/base/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.
13+
# limitations under the License.

aws_advanced_python_wrapper/tortoise/backend/mysql/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
from .client import AwsMySQLClient
1515

16-
client_class = AwsMySQLClient
16+
client_class = AwsMySQLClient

aws_advanced_python_wrapper/tortoise/backend/mysql/client.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,7 @@ def __init__(
127127
self.extra.pop("fetch_inserted", None)
128128
self.extra.pop("autocommit", None)
129129
self.extra.setdefault("sql_mode", "STRICT_TRANS_TABLES")
130-
131-
# Ensure that timeouts are integers
132-
timeout_params = ["connect_timeout", "monitoring-connect_timeout",]
133-
for param in timeout_params:
134-
if param in self.extra and self.extra[param] is not None:
135-
self.extra[param] = int(self.extra[param])
136-
130+
137131
# Initialize connection templates
138132
self._init_connection_templates()
139133

@@ -354,4 +348,4 @@ async def execute_many(self, query: str, values: List[List[Any]]) -> None:
354348

355349
def _gen_savepoint_name(_c: count = count()) -> str:
356350
"""Generate a unique savepoint name."""
357-
return f"tortoise_savepoint_{next(_c)}"
351+
return f"tortoise_savepoint_{next(_c)}"

tests/integration/container/tortoise/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License
13+
# limitations under the License

tests/integration/container/tortoise/models/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ class TableWithSleepTrigger(Model):
4141
value = fields.CharField(max_length=100)
4242

4343
class Meta:
44-
table = "table_with_sleep_trigger"
44+
table = "table_with_sleep_trigger"

tests/integration/container/tortoise/models/test_models_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ class TableWithSleepTrigger(Model):
4141
value = fields.CharField(max_length=100)
4242

4343
class Meta:
44-
table = "table_with_sleep_trigger"
44+
table = "table_with_sleep_trigger"

tests/integration/container/tortoise/models/test_models_relationships.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ class RelTestSubject(Model):
7575
learners = fields.ManyToManyField("models.RelTestLearner", related_name="subjects")
7676

7777
class Meta:
78-
table = "rel_test_subjects"
78+
table = "rel_test_subjects"

0 commit comments

Comments
 (0)