Skip to content

Commit

Permalink
Bump pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Aug 14, 2024
1 parent c5a80ed commit ac32b33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: pip install .
- uses: jakebailey/pyright-action@v2
with:
version: 1.1.367
version: 1.1.376
3 changes: 2 additions & 1 deletion filesender/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Iterable, List, Optional, Tuple, AsyncIterator, Set, cast
from typing import Any, Iterable, List, Optional, Tuple, AsyncIterator, Set
from bs4 import BeautifulSoup
import filesender.response_types as response
import filesender.request_types as request
Expand Down Expand Up @@ -425,6 +425,7 @@ async def _upload_args() -> AsyncIterator[tuple[request.File, Path]]:
for file in transfer["files"]:
# Skip folders, which aren't real
if file["name"] in files_by_name:
# Pyright seems to not understand the
yield file, files_by_name[file["name"]]

Check failure on line 429 in filesender/api.py

View workflow job for this annotation

GitHub Actions / build (3.9)

Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)

Check failure on line 429 in filesender/api.py

View workflow job for this annotation

GitHub Actions / build (3.10)

Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)

Check failure on line 429 in filesender/api.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Return type of async generator function must be compatible with "AsyncGenerator[tuple[File, Path], Any]"   "mime_type" is missing from "File"   "cid" is missing from "File" (reportReturnType)

# Upload each file in parallel
Expand Down

0 comments on commit ac32b33

Please sign in to comment.