Skip to content

Commit 588c8e3

Browse files
committed
Fixed mypy issues
1 parent 647197a commit 588c8e3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

bugout/jobs.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
import json
99
import os
1010
import requests
11-
from typing import Callable, Optional
12-
from uuid import UUID
11+
from typing import Callable, Optional, List
1312

1413
from .app import Bugout
1514
from .data import AuthType, BugoutSearchResultWithEntryID
@@ -81,7 +80,7 @@ def update_cursor(self, created_at: datetime):
8180
This is done by simply creating a new entry representing the cursor position.
8281
"""
8382
cursor_tag = f"cursor:{self.cursor_context_type}"
84-
headers = {"Authorization": f"{self.auth_type.value} {self.bugout_token}"}
83+
headers = {"Authorization": f"{self.auth_type} {self.bugout_token}"}
8584
body = {
8685
"title": cursor_tag,
8786
"content": "",
@@ -101,15 +100,15 @@ def remaining_jobs(
101100
use_cursor: bool = True,
102101
limit: int = 10,
103102
offset: int = 0,
104-
) -> list[BugoutSearchResultWithEntryID]:
103+
) -> List[BugoutSearchResultWithEntryID]:
105104
"""
106105
List all remaining jobs. These are jobs that have neither been marked as complete nor as failed.
107106
If the use_cursor argument is True, this only returns jobs since the most recent cursor. If it is
108107
False, remaining_jobs returns all incomplete and unfailed jobs since the beginning of time.
109108
110109
Jobs are returned in chronological order.
111110
"""
112-
query_components: list[str] = [
111+
query_components: List[str] = [
113112
f"context_type:{self.context_type}",
114113
f"!tag:{self.success_tag}",
115114
f"!tag:{self.failure_tag}",

0 commit comments

Comments
 (0)