Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

kanat
Copy link
Contributor

@kanat kanat commented Feb 21, 2025

Ticket

Related PR

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

@@ -1,5 +1,5 @@
import sys
from typing import Dict, List, Optional
from typing import Dict, List, Optional, Union
Copy link
Contributor

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

kanat and others added 3 commits February 21, 2025 15:46
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
"""
Create a campaign
Get a campaign

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[black] reported by reviewdog 🐶

Suggested change

from stream_chat.types.campaign import (
CampaignData,
QueryCampaignsOptions,
GetCampaignOptions,
Copy link
Contributor

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,
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [flake8] <293> reported by reviewdog 🐶
blank line contains whitespace

from stream_chat.types.campaign import (
CampaignData,
QueryCampaignsOptions,
GetCampaignOptions,
Copy link
Contributor

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 = {}
Copy link
Contributor

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 = {}
Copy link
Contributor

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant