Skip to content

Commit f56f264

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent da17511 commit f56f264

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

auditlog/management/commands/auditlogpartition.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import contextlib
22
import datetime
3-
from dataclasses import dataclass
43
from collections.abc import Iterable, Iterator
4+
from dataclasses import dataclass
55

66
from django.conf import settings
77
from django.core.management.base import BaseCommand, CommandError
@@ -488,9 +488,7 @@ def _create_partition_indexes(self, connection, table: str, columns: Iterable[st
488488
f"ON {self._qn(connection, table)} ({self._qn(connection, column, allow_schema=False)});"
489489
)
490490

491-
def _prepare_sequence(
492-
self, connection, table: str, old_table: str
493-
) -> str | None:
491+
def _prepare_sequence(self, connection, table: str, old_table: str) -> str | None:
494492
sequence = self._sequence_name(connection, old_table)
495493
if not sequence:
496494
return None

0 commit comments

Comments
 (0)