Skip to content

Commit 7154de8

Browse files
committed
Finish hints for operations
1 parent 80b0305 commit 7154de8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/django_mysql/operations.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def plugin_installed(self, schema_editor: BaseDatabaseSchemaEditor) -> bool:
4848
WHERE PLUGIN_NAME LIKE %s""",
4949
(self.name,),
5050
)
51-
count = cursor.fetchone()[0]
51+
count: int = cursor.fetchone()[0]
5252
return count > 0
5353

5454
def describe(self) -> str:
@@ -96,9 +96,7 @@ def __init__(
9696
self.engine = to_engine
9797
self.from_engine = from_engine
9898

99-
@property
100-
def reversible(self) -> bool:
101-
return self.from_engine is not None
99+
self.reversible = self.from_engine is not None
102100

103101
def state_forwards(self, app_label: str, state: ProjectState) -> None:
104102
pass

0 commit comments

Comments
 (0)