fix: any -> Any

pull/926/head
Adrian Maraj 2024-07-23 14:24:23 +02:00
parent 65275adb90
commit 13651dcfdb
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ class RecentCaptures(Resource): # type: ignore[misc]
params={'category': 'The category according to which the uuids are to be returned.'}, params={'category': 'The category according to which the uuids are to be returned.'},
required=False) required=False)
class CategoriesCaptures(Resource): # type: ignore[misc] class CategoriesCaptures(Resource): # type: ignore[misc]
def get(self, category: str | None=None) -> list[str] | dict[str, any]: def get(self, category: str | None=None) -> list[str] | dict[str, Any]:
categories = ['legitimate', 'parking-page', 'default-page', 'insti_usertution', 'captcha', categories = ['legitimate', 'parking-page', 'default-page', 'insti_usertution', 'captcha',
'authentication-form', 'adult-content', 'shop', 'malicious', 'clone', 'phishing', 'unclear'] 'authentication-form', 'adult-content', 'shop', 'malicious', 'clone', 'phishing', 'unclear']
if not category: if not category: