Skip to content

Commit

Permalink
🗑️ Stupid pycharm.
Browse files Browse the repository at this point in the history
  • Loading branch information
BalconyJH committed Jan 1, 2025
1 parent 949e62b commit feb24c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aioarxiv/client/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def _download_to_temp(self, url: str, temp_path: Path) -> None:

async with aiofiles.open(temp_path, "wb") as f:
async for chunk in response.content.iter_chunked(8192):
await f.write(chunk)
await f.write(chunk) # type: ignore

@retry(
stop=stop_after_attempt(3),
Expand Down
2 changes: 1 addition & 1 deletion src/aioarxiv/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Paper(BaseModel):
"""论文模型"""

info: BasicInfo = Field(description="基础信息")
doi: Optional[str] = Field(None, description="DOI, 格式需符合正则")
doi: Optional[str] = Field(None, description="DOI, 格式需符合正则")
journal_ref: Optional[str] = Field(None, description="期刊引用")
pdf_url: Optional[HttpUrl] = Field(None, description="PDF下载链接")
comment: Optional[str] = Field(None, description="作者评论或注释")
Expand Down
2 changes: 1 addition & 1 deletion src/aioarxiv/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def build_search_result(self, query_params: SearchParams) -> SearchResult:
metadata=Metadata(
missing_results=0,
pagesize=0,
source=self.response_url,
source=URL(self.response_url),
end_time=None,
),
)
Expand Down

0 comments on commit feb24c9

Please sign in to comment.