Skip to content

Commit bcec60f

Browse files
committed
FIX linter errors
1 parent b54716e commit bcec60f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/book.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import re
2222
from collections import defaultdict
2323
from pathlib import Path
24-
from typing import Any, Optional, Type
24+
from typing import Any, Optional
2525

2626
import config
2727
import misc
@@ -56,7 +56,7 @@ def create_operation(
5656
coin: str,
5757
row: int,
5858
file_path: Path,
59-
) -> Type[tr.Operation]:
59+
) -> tr.Operation:
6060

6161
try:
6262
Op = getattr(tr, operation)
@@ -70,7 +70,9 @@ def create_operation(
7070
)
7171
raise RuntimeError
7272

73-
return Op(utc_time, platform, change, coin, row, file_path)
73+
op = Op(utc_time, platform, change, coin, row, file_path)
74+
assert isinstance(op, tr.Operation)
75+
return op
7476

7577
def _append_operation(
7678
self,

0 commit comments

Comments
 (0)