Skip to content

Commit 683edd6

Browse files
kriptoburakstainless-app[bot]
authored andcommitted
fix: load search coverage responses
1 parent b33cd30 commit 683edd6

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

requirements-dev.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ certifi==2026.6.17
1717
# httpx
1818
colorama==0.4.6 ; sys_platform == 'win32'
1919
# via pytest
20-
coverage==7.15.2
20+
coverage==7.15.3
2121
dirty-equals==0.11
2222
distro==1.9.0
2323
# via x-twitter-scraper
@@ -76,7 +76,7 @@ pytest-asyncio==1.4.0
7676
pytest-xdist==3.8.0
7777
respx==0.23.1
7878
rich==15.0.0
79-
ruff==0.15.22
79+
ruff==0.16.1
8080
sniffio==1.3.1
8181
# via x-twitter-scraper
8282
time-machine==3.2.0

scripts/bootstrap

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1
1212
brew bundle check >/dev/null 2>&1 || {
1313
echo -n "==> Install Homebrew dependencies? (y/N): "
1414
read -r response
15-
case "$response" in
16-
[yY][eE][sS]|[yY])
17-
brew bundle
18-
;;
19-
*)
20-
;;
21-
esac
15+
if [[ "$response" =~ ^[Yy]([Ee][Ss])?$ ]]; then
16+
brew bundle
17+
fi
2218
echo
2319
}
2420
fi

src/x_twitter_scraper/types/x/tweet_search_response.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from pydantic import Field as FieldInfo
1010

1111
from ..._models import BaseModel
12+
from ..shared.search_tweet import SearchTweet
1213
from ..shared.paginated_tweets import PaginatedTweets
1314

1415
__all__ = [
@@ -89,6 +90,8 @@ class TweetSearchCoverageResponse(PaginatedTweets):
8990
No-mode search, user Tweet, user reply, and direct reply reads use automatic coverage. Shape, filters, aliases, and billing stay compatible. Unprefixed cursors remain legacy. Follow next_cursor while has_next_page is true. An empty filtered page can still have has_next_page true.
9091
"""
9192

93+
tweets: List[SearchTweet]
94+
9295
diagnostic: TweetSearchCoverageResponseDiagnostic
9396
"""Coverage evidence across parallel search strategies."""
9497

@@ -97,6 +100,4 @@ class TweetSearchCoverageResponse(PaginatedTweets):
97100
next_cursor: Optional[Literal[""]] = None # type: ignore
98101

99102

100-
TweetSearchResponse: TypeAlias = Union["PaginatedTweets", TweetSearchCoverageResponse]
101-
102-
from ..shared.paginated_tweets import PaginatedTweets
103+
TweetSearchResponse: TypeAlias = Union[PaginatedTweets, TweetSearchCoverageResponse]

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)