Skip to content

Commit

Permalink
♿️ change to new typing
Browse files Browse the repository at this point in the history
  • Loading branch information
script-money committed Sep 14, 2022
1 parent 20a655a commit 9b7da37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/fresh_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from typing import List
from httpx import Timeout, Client, AsyncClient
import time
import asyncio
Expand Down Expand Up @@ -145,7 +144,7 @@ def opensea_refresh(client: Client, id: int) -> bool:
return False


async def ipfs_query_tasks(request_urls: List[str]):
async def ipfs_query_tasks(request_urls: list[str]):
"""
create asyncio tasks for ipfs query
Expand Down
3 changes: 1 addition & 2 deletions src/generate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
from typing import List
from PIL import Image
import pandas as pd
import numpy as np
Expand Down Expand Up @@ -194,7 +193,7 @@ def generate_images(
return df_attr


def check_values_valid(df: pd.DataFrame, select_columns: List, all_values: List):
def check_values_valid(df: pd.DataFrame, select_columns: list, all_values: list):
"""
Check selected column values is in the list
Expand Down

0 comments on commit 9b7da37

Please sign in to comment.