fix: lint
This commit is contained in:
parent
287aa819bb
commit
a88c865437
|
@ -3,7 +3,6 @@ from email.mime.multipart import MIMEMultipart
|
|||
from email.mime.text import MIMEText
|
||||
from typing import Literal
|
||||
|
||||
from backend.integrations.providers import ProviderName
|
||||
from pydantic import BaseModel, ConfigDict, SecretStr
|
||||
|
||||
from backend.data.block import Block, BlockCategory, BlockOutput, BlockSchema
|
||||
|
@ -13,7 +12,7 @@ from backend.data.model import (
|
|||
SchemaField,
|
||||
UserPasswordCredentials,
|
||||
)
|
||||
|
||||
from backend.integrations.providers import ProviderName
|
||||
|
||||
TEST_CREDENTIALS = UserPasswordCredentials(
|
||||
id="01234567-89ab-cdef-0123-456789abcdef",
|
||||
|
|
|
@ -77,7 +77,10 @@ def get_praw(creds: RedditCredentials) -> praw.Reddit:
|
|||
|
||||
class GetRedditPostsBlock(Block):
|
||||
class Input(BlockSchema):
|
||||
subreddit: str = SchemaField(description="Subreddit name, excluding the /r/ prefix", default="writingprompts")
|
||||
subreddit: str = SchemaField(
|
||||
description="Subreddit name, excluding the /r/ prefix",
|
||||
default="writingprompts",
|
||||
)
|
||||
credentials: RedditCredentialsInput = RedditCredentialsField()
|
||||
last_minutes: int | None = SchemaField(
|
||||
description="Post time to stop minutes ago while fetching posts",
|
||||
|
|
Loading…
Reference in New Issue