Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wd0517 committed Jul 20, 2023
1 parent 88a66f6 commit a7b8ff7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django_tidb/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DatabaseFeatures(MysqlDatabaseFeatures):
"non_default": "utf8mb4_bin",
}

minimum_database_version = (4, )
minimum_database_version = (4,)

@cached_property
def supports_foreign_keys(self):
Expand Down Expand Up @@ -279,7 +279,7 @@ def django_test_skips(self):
"test_utils.tests.TestBadSetUpTestData.test_failure_in_setUpTestData_should_rollback_transaction",
},
}
if django.VERSION > (3, ):
if django.VERSION > (3,):
skips.update(
{
"django4": {
Expand Down
5 changes: 3 additions & 2 deletions django_tidb/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from django.utils.datastructures import OrderedSet

FieldInfo = namedtuple(
"FieldInfo", BaseFieldInfo._fields + ("extra", "is_unsigned", "has_json_constraint", "comment")
"FieldInfo",
BaseFieldInfo._fields + ("extra", "is_unsigned", "has_json_constraint", "comment"),
)
InfoLine = namedtuple(
"InfoLine",
Expand Down Expand Up @@ -218,4 +219,4 @@ def get_constraints(self, cursor, table_name):
# Convert the sorted sets to lists
for constraint in constraints.values():
constraint["columns"] = list(constraint["columns"])
return constraints
return constraints

0 comments on commit a7b8ff7

Please sign in to comment.