diff --git a/pypisearch/search.py b/pypisearch/search.py index 31866f1..22eb793 100644 --- a/pypisearch/search.py +++ b/pypisearch/search.py @@ -9,6 +9,7 @@ class Search: """Main search process instance.""" + pypi_search_url = "https://pypi.org/search/?q={query}&page={page}" def __init__( @@ -51,15 +52,13 @@ def download_data(self, *, query: str, page: int) -> List[ResultItem]: def tabulated_result(self) -> str: """Returns tabulated list of results.""" - return ( - tabulate.tabulate( + return tabulate.tabulate( + [ [ - [ - f"{item.name} ({item.version})", - f"{item.installed_description}{item.description}", - ] - for item in self.result - ], - tablefmt="plain", - ) + f"{item.name} ({item.version})", + f"{item.installed_description}{item.description}", + ] + for item in self.result + ], + tablefmt="plain", )