fix: harden search validation and release v0.7.1
This commit is contained in:
@@ -9,7 +9,7 @@ import os
|
||||
import random
|
||||
import time
|
||||
import urllib.parse
|
||||
from typing import Any, Callable, Dict, cast
|
||||
from typing import TYPE_CHECKING, Any, Callable, cast
|
||||
|
||||
import bs4
|
||||
from curl_cffi import requests as _cffi_requests
|
||||
@@ -52,6 +52,11 @@ from .parser import (
|
||||
parse_user_result,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Dict, List, Optional, Set, Tuple # noqa: F401
|
||||
|
||||
from .models import Tweet # noqa: F401
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Shared curl_cffi session (single-threaded CLI)
|
||||
|
||||
Reference in New Issue
Block a user