Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Use typing.Dict over dict
Browse files Browse the repository at this point in the history
  • Loading branch information
huenique committed Jun 18, 2022
1 parent ae640a6 commit bf222ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions youtubesearchpython/__future__/search.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional
from typing import Any, Dict, Optional

from youtubesearchpython.core.channelsearch import ChannelSearchCore
from youtubesearchpython.core.constants import *
Expand Down Expand Up @@ -75,7 +75,7 @@ def __init__(self, query: str, limit: int = 20, language: str = 'en', region: st
self.searchMode = (True, True, True)
super().__init__(query, limit, language, region, None, timeout) # type: ignore

async def next(self) -> dict[str, Any]:
async def next(self) -> Dict[str, Any]:
return await self._nextAsync() # type: ignore


Expand Down Expand Up @@ -149,7 +149,7 @@ def __init__(self, query: str, limit: int = 20, language: str = 'en', region: st
self.searchMode = (True, False, False)
super().__init__(query, limit, language, region, SearchMode.videos, timeout) # type: ignore

async def next(self) -> dict[str, Any]:
async def next(self) -> Dict[str, Any]:
return await self._nextAsync() # type: ignore


Expand Down Expand Up @@ -198,7 +198,7 @@ def __init__(self, query: str, limit: int = 20, language: str = 'en', region: st
self.searchMode = (False, True, False)
super().__init__(query, limit, language, region, SearchMode.channels, timeout) # type: ignore

async def next(self) -> dict[str, Any]:
async def next(self) -> Dict[str, Any]:
return await self._nextAsync() # type: ignore


Expand Down Expand Up @@ -260,7 +260,7 @@ def __init__(self, query: str, limit: int = 20, language: str = 'en', region: st
self.searchMode = (False, False, True)
super().__init__(query, limit, language, region, SearchMode.playlists, timeout) # type: ignore

async def next(self) -> dict[str, Any]:
async def next(self) -> Dict[str, Any]:
return await self._nextAsync() # type: ignore

class CustomSearch(SearchCore):
Expand Down Expand Up @@ -344,7 +344,7 @@ def __init__(self, query: str, searchPreferences: str, limit: int = 20, language
self.searchMode = (True, True, True)
super().__init__(query, limit, language, region, searchPreferences, timeout) # type: ignore

async def next(self) -> dict[str, Any]:
async def next(self) -> Dict[str, Any]:
return await self._nextAsync() # type: ignore

class ChannelSearch(ChannelSearchCore):
Expand Down

0 comments on commit bf222ff

Please sign in to comment.