Merge pull request #1728 from barnett-yuxiang/fix/reportInvalidTypeForm

Fix type hint for get_pr_description method and clean up whitespace
This commit is contained in:
Tal
2025-04-30 10:43:06 +03:00
committed by GitHub

View File

@ -133,7 +133,7 @@ class GitProvider(ABC):
def reply_to_comment_from_comment_id(self, comment_id: int, body: str):
pass
def get_pr_description(self, full: bool = True, split_changes_walkthrough=False) -> str or tuple:
def get_pr_description(self, full: bool = True, split_changes_walkthrough=False) -> str | tuple:
from pr_agent.algo.utils import clip_tokens
from pr_agent.config_loader import get_settings
max_tokens_description = get_settings().get("CONFIG.MAX_DESCRIPTION_TOKENS", None)
@ -285,7 +285,7 @@ class GitProvider(ABC):
def get_comment_url(self, comment) -> str:
return ""
def get_review_thread_comments(self, comment_id: int) -> list[dict]:
pass