-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CHA-536] support campaign user pagination #188
base: master
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,5 @@ | |||
import sys | |||
from typing import Dict, List, Optional | |||
from typing import Dict, List, Optional, Union |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[flake8] <401> reported by reviewdog 🐶
'typing.Union' imported but unused
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
) -> Union[StreamResponse, Awaitable[StreamResponse]]: | ||
""" | ||
Create a campaign | ||
Get a campaign | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[black] reported by reviewdog 🐶
from stream_chat.types.campaign import ( | ||
CampaignData, | ||
QueryCampaignsOptions, | ||
GetCampaignOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [flake8] <1> reported by reviewdog 🐶
isort found an import in the wrong position
from stream_chat.types.campaign import ( | ||
CampaignData, | ||
QueryCampaignsOptions, | ||
GetCampaignOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [flake8] <1> reported by reviewdog 🐶
isort found an import in the wrong position
) -> Union[StreamResponse, Awaitable[StreamResponse]]: | ||
""" | ||
Create a campaign | ||
Get a campaign | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line contains whitespace
from stream_chat.types.campaign import ( | ||
CampaignData, | ||
QueryCampaignsOptions, | ||
GetCampaignOptions, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [flake8] <1> reported by reviewdog 🐶
isort found an import in the wrong position
def get_campaign( | ||
self, campaign_id: str, options: Optional[GetCampaignOptions] = None | ||
) -> StreamResponse: | ||
params = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [mypy] reported by reviewdog 🐶
Need type annotation for "params" (hint: "params: dict[, ] = ...") [var-annotated]
async def get_campaign( | ||
self, campaign_id: str, options: Optional[GetCampaignOptions] = None | ||
) -> StreamResponse: | ||
params = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [mypy] reported by reviewdog 🐶
Need type annotation for "params" (hint: "params: dict[, ] = ...") [var-annotated]
Ticket
Related PR
CLA
Description of the pull request