Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
prostomarkeloff committed Apr 12, 2020
1 parent 8540531 commit c68c373
Show file tree
Hide file tree
Showing 44 changed files with 113 additions and 141 deletions.
18 changes: 5 additions & 13 deletions vkwave/api/methods/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -111,9 +112,7 @@ async def get_banned(
return result

async def get_counters(
self,
return_raw_response: bool = False,
filter: typing.Optional[typing.List[str]] = None,
self, return_raw_response: bool = False, filter: typing.Optional[typing.List[str]] = None,
) -> typing.Union[dict, AccountGetCountersResponse]:
"""
:param filter: - Counters to be returned.
Expand All @@ -131,9 +130,7 @@ async def get_counters(
return result

async def get_info(
self,
return_raw_response: bool = False,
fields: typing.Optional[typing.List[str]] = None,
self, return_raw_response: bool = False, fields: typing.Optional[typing.List[str]] = None,
) -> typing.Union[dict, AccountGetInfoResponse]:
"""
:param fields: - Fields to return. Possible values: *'country' — user country,, *'https_required' — is "HTTPS only" option enabled,, *'own_posts_default' — is "Show my posts only" option is enabled,, *'no_wall_replies' — are wall replies disabled or not,, *'intro' — is intro passed by user or not,, *'lang' — user language. By default: all.
Expand Down Expand Up @@ -286,10 +283,7 @@ async def set_info(
return result

async def set_name_in_menu(
self,
user_id: int,
return_raw_response: bool = False,
name: typing.Optional[str] = None,
self, user_id: int, return_raw_response: bool = False, name: typing.Optional[str] = None,
) -> typing.Union[dict, OkResponse]:
"""
:param user_id: - User ID.
Expand Down Expand Up @@ -325,9 +319,7 @@ async def set_offline(
return result

async def set_online(
self,
return_raw_response: bool = False,
voip: typing.Optional[BaseBoolInt] = None,
self, return_raw_response: bool = False, voip: typing.Optional[BaseBoolInt] = None,
) -> typing.Union[dict, OkResponse]:
"""
:param voip: - '1' if videocalls are available for current device.
Expand Down
12 changes: 3 additions & 9 deletions vkwave/api/methods/ads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -477,11 +478,7 @@ async def get_office_users(
return result

async def get_posts_reach(
self,
account_id: int,
ids_type: str,
ids: BaseBoolInt,
return_raw_response: bool = False,
self, account_id: int, ids_type: str, ids: BaseBoolInt, return_raw_response: bool = False,
) -> typing.Union[dict, AdsGetPostsReachResponse]:
"""
:param account_id: - Advertising account ID.
Expand Down Expand Up @@ -642,10 +639,7 @@ async def get_targeting_stats(
return result

async def get_upload_u_r_l(
self,
ad_format: int,
return_raw_response: bool = False,
icon: typing.Optional[int] = None,
self, ad_format: int, return_raw_response: bool = False, icon: typing.Optional[int] = None,
) -> typing.Union[dict, AdsGetUploadURLResponse]:
"""
:param ad_format: - Ad format: *1 — image and text,, *2 — big image,, *3 — exclusive format,, *4 — community, square image,, *7 — special app format.
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
5 changes: 2 additions & 3 deletions vkwave/api/methods/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -127,9 +128,7 @@ async def get_leaderboard(
return_raw_response: bool = False,
global_: typing.Optional[BaseBoolInt] = None,
extended: typing.Optional[BaseBoolInt] = None,
) -> typing.Union[
dict, AppsGetLeaderboardResponse, AppsGetLeaderboardExtendedResponse
]:
) -> typing.Union[dict, AppsGetLeaderboardResponse, AppsGetLeaderboardExtendedResponse]:
"""
:param type: - Leaderboard type. Possible values: *'level' — by level,, *'points' — by mission points,, *'score' — by score ().
:param global_: - Rating type. Possible values: *'1' — global rating among all players,, *'0' — rating among user friends.
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
19 changes: 4 additions & 15 deletions vkwave/api/methods/board.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -84,11 +85,7 @@ async def create_comment(
return result

async def delete_comment(
self,
group_id: int,
topic_id: int,
comment_id: int,
return_raw_response: bool = False,
self, group_id: int, topic_id: int, comment_id: int, return_raw_response: bool = False,
) -> typing.Union[dict, OkResponse]:
"""
:param group_id: - ID of the community that owns the discussion board.
Expand Down Expand Up @@ -155,11 +152,7 @@ async def edit_comment(
return result

async def edit_topic(
self,
group_id: int,
topic_id: int,
title: str,
return_raw_response: bool = False,
self, group_id: int, topic_id: int, title: str, return_raw_response: bool = False,
) -> typing.Union[dict, OkResponse]:
"""
:param group_id: - ID of the community that owns the discussion board.
Expand Down Expand Up @@ -293,11 +286,7 @@ async def open_topic(
return result

async def restore_comment(
self,
group_id: int,
topic_id: int,
comment_id: int,
return_raw_response: bool = False,
self, group_id: int, topic_id: int, comment_id: int, return_raw_response: bool = False,
) -> typing.Union[dict, OkResponse]:
"""
:param group_id: - ID of the community that owns the discussion board.
Expand Down
5 changes: 2 additions & 3 deletions vkwave/api/methods/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -221,9 +222,7 @@ async def get_regions(
return result

async def get_school_classes(
self,
return_raw_response: bool = False,
country_id: typing.Optional[int] = None,
self, return_raw_response: bool = False, country_id: typing.Optional[int] = None,
) -> typing.Union[dict, DatabaseGetSchoolClassesResponse]:
"""
:param country_id: - Country ID.
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/fave.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
5 changes: 2 additions & 3 deletions vkwave/api/methods/friends.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -361,9 +362,7 @@ async def get_requests(
suggested: typing.Optional[BaseBoolInt] = None,
ref: typing.Optional[str] = None,
fields: typing.Optional[typing.List[UsersFields]] = None,
) -> typing.Union[
dict, FriendsGetRequestsResponse, FriendsGetRequestsExtendedResponse
]:
) -> typing.Union[dict, FriendsGetRequestsResponse, FriendsGetRequestsExtendedResponse]:
"""
:param offset: - Offset needed to return a specific subset of friend requests.
:param count: - Number of friend requests to return (default 100, maximum 1000).
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/gifts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
5 changes: 2 additions & 3 deletions vkwave/api/methods/groups.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -694,9 +695,7 @@ async def get_catalog_info(
return_raw_response: bool = False,
extended: typing.Optional[BaseBoolInt] = None,
subcategories: typing.Optional[BaseBoolInt] = None,
) -> typing.Union[
dict, GroupsGetCatalogInfoResponse, GroupsGetCatalogInfoExtendedResponse
]:
) -> typing.Union[dict, GroupsGetCatalogInfoResponse, GroupsGetCatalogInfoExtendedResponse]:
"""
:param extended: - 1 – to return communities count and three communities for preview. By default: 0.
:param subcategories: - 1 – to return subcategories info. By default: 0.
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/leads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/likes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
6 changes: 2 additions & 4 deletions vkwave/api/methods/market.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -308,10 +309,7 @@ async def get(
return result

async def get_album_by_id(
self,
owner_id: int,
album_ids: typing.List[int],
return_raw_response: bool = False,
self, owner_id: int, album_ids: typing.List[int], return_raw_response: bool = False,
) -> typing.Union[dict, MarketGetAlbumByIdResponse]:
"""
:param owner_id: - identifier of an album owner community, "Note that community id in the 'owner_id' parameter should be negative number. For example 'owner_id'=-1 matches the [vk.com/apiclub|VK API] community "
Expand Down
10 changes: 3 additions & 7 deletions vkwave/api/methods/messages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -27,10 +28,7 @@ async def add_chat_user(
return result

async def allow_messages_from_group(
self,
group_id: int,
return_raw_response: bool = False,
key: typing.Optional[str] = None,
self, group_id: int, return_raw_response: bool = False, key: typing.Optional[str] = None,
) -> typing.Union[dict, OkResponse]:
"""
:param group_id: - Group ID.
Expand Down Expand Up @@ -365,9 +363,7 @@ async def get_conversations_by_id(
fields: typing.Optional[typing.List[BaseUserGroupFields]] = None,
group_id: typing.Optional[int] = None,
) -> typing.Union[
dict,
MessagesGetConversationsByIdResponse,
MessagesGetConversationsByIdExtendedResponse,
dict, MessagesGetConversationsByIdResponse, MessagesGetConversationsByIdExtendedResponse,
]:
"""
:param peer_ids: - Destination IDs. "For user: 'User ID', e.g. '12345'. For chat: '2000000000' + 'chat_id', e.g. '2000000001'. For community: '- community ID', e.g. '-12345'. "
Expand Down
5 changes: 2 additions & 3 deletions vkwave/api/methods/newsfeed.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -110,9 +111,7 @@ async def get_banned(
extended: typing.Optional[BaseBoolInt] = None,
fields: typing.Optional[typing.List[UsersFields]] = None,
name_case: typing.Optional[str] = None,
) -> typing.Union[
dict, NewsfeedGetBannedResponse, NewsfeedGetBannedExtendedResponse
]:
) -> typing.Union[dict, NewsfeedGetBannedResponse, NewsfeedGetBannedExtendedResponse]:
"""
:param extended: - '1' — return extra information about users and communities
:param fields: - Profile fields to return.
Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/notes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
1 change: 1 addition & 0 deletions vkwave/api/methods/notifications.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down
7 changes: 2 additions & 5 deletions vkwave/api/methods/orders.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -159,11 +160,7 @@ async def get_user_subscriptions(
return result

async def update_subscription(
self,
user_id: int,
subscription_id: int,
price: int,
return_raw_response: bool = False,
self, user_id: int, subscription_id: int, price: int, return_raw_response: bool = False,
) -> typing.Union[dict, OrdersUpdateSubscriptionResponse]:
"""
:param user_id:
Expand Down
6 changes: 2 additions & 4 deletions vkwave/api/methods/pages.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from vkwave.types.responses import *

from ._category import Category
from ._utils import get_params

Expand Down Expand Up @@ -123,10 +124,7 @@ async def get_version(
return result

async def parse_wiki(
self,
text: str,
return_raw_response: bool = False,
group_id: typing.Optional[int] = None,
self, text: str, return_raw_response: bool = False, group_id: typing.Optional[int] = None,
) -> typing.Union[dict, PagesParseWikiResponse]:
"""
:param text: - Text of the wiki page.
Expand Down
Loading

0 comments on commit c68c373

Please sign in to comment.