Skip to content

Commit

Permalink
fix(judge-pics): update py files
Browse files Browse the repository at this point in the history
  • Loading branch information
quevon24 committed Feb 20, 2025
1 parent aecfea5 commit 4c81dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions judge_pics/scrapers/dc_circuit_judges.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import shutil
import subprocess
from typing import Optional, Tuple
from typing import Optional

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

def get_artist_and_date_created(
full_url: str,
) -> Tuple[Optional[str], Optional[str]]:
) -> tuple[Optional[str], Optional[str]]:
"""Open firefox, prompt for answer, sanitize answer and return it.
:param full_url: The URL to be opened in the Firefox browser
Expand Down
4 changes: 2 additions & 2 deletions judge_pics/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from enum import Enum
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import List, Literal, Optional, Union
from typing import Literal, Optional, Union

import climage
import requests
Expand All @@ -28,7 +28,7 @@ class ImageSizes(Enum):
]


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

Expand Down

0 comments on commit 4c81dd0

Please sign in to comment.