Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix type hints #445

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sparsezoo/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def queue_chunk_download_jobs(self) -> None:
The jobs need to be executed by a worker or scheduler that processes the
queued JobQueues.
"""
download_jobs: Queue[Job] = JobQueue(description="Downloading Chunks")
download_jobs: Queue = JobQueue(description="Downloading Chunks")
num_download_jobs = math.ceil(self.file_size / self.chunk_bytes)

for job_id in range(num_download_jobs):
Expand Down Expand Up @@ -278,7 +278,7 @@ def run(self, num_threads: int = 10) -> None:
future.result()
is_prev_job_queue_success = True

def execute_job_from_queue(self, job_queue: Queue[Job], **kwargs) -> None:
def execute_job_from_queue(self, job_queue: Queue, **kwargs) -> None:
"""
Executes a single job from the given job queue, managing retries and
synchronization.
Expand Down
Loading