Skip to content

Commit 4c81dd0

Browse files
committed
fix(judge-pics): update py files
1 parent aecfea5 commit 4c81dd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

judge_pics/scrapers/dc_circuit_judges.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import re
55
import shutil
66
import subprocess
7-
from typing import Optional, Tuple
7+
from typing import Optional
88

99
import requests
1010
from lxml import html
@@ -30,7 +30,7 @@ def make_slug(name: str, path: str) -> str:
3030

3131
def get_artist_and_date_created(
3232
full_url: str,
33-
) -> Tuple[Optional[str], Optional[str]]:
33+
) -> tuple[Optional[str], Optional[str]]:
3434
"""Open firefox, prompt for answer, sanitize answer and return it.
3535
3636
:param full_url: The URL to be opened in the Firefox browser

judge_pics/search.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from enum import Enum
55
from pathlib import Path
66
from tempfile import NamedTemporaryFile
7-
from typing import List, Literal, Optional, Union
7+
from typing import Literal, Optional, Union
88

99
import climage
1010
import requests
@@ -28,7 +28,7 @@ class ImageSizes(Enum):
2828
]
2929

3030

31-
def query(search_str: str, size: SIZES = ImageSizes.MEDIUM) -> Optional[List]:
31+
def query(search_str: str, size: SIZES = ImageSizes.MEDIUM) -> Optional[list]:
3232
"""Find a judge by name"""
3333
paths = [j["path"] for j in judges]
3434

0 commit comments

Comments
 (0)