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 Pyright errors #281

Merged
merged 1 commit into from
May 16, 2023
Merged

Fix Pyright errors #281

merged 1 commit into from
May 16, 2023

Conversation

joverlee521
Copy link
Contributor

@joverlee521 joverlee521 commented May 13, 2023

Description of proposed changes

Fix Pyright errors that have been raised in our scheduled CI runs since the release of Pyright 1.1.306.¹ I have not dug into the Pyright changelog to determine the exact change that leads to this new error.

¹ https://github.com/nextstrain/cli/actions/runs/4874920417

Testing

  • Checks pass

Fix Pyright errors that have been raised in our scheduled CI runs
since the release of Pyright 1.1.306.¹ I have not dug into the Pyright
changelog to determine the exact change that leads to this new error.

¹ https://github.com/nextstrain/cli/actions/runs/4874920417
@@ -65,6 +65,7 @@ def upload_workdir(workdir: Path, bucket: S3Bucket, run_id: str) -> S3Object:
])

# Stream writes directly to the remote ZIP file
remote_file: Any
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, we may consider creating type stubs for fsspec so that we can provide the correct type instead of Any.

@joverlee521
Copy link
Contributor Author

Merging since this is a small type fix that will only affect the Pyright test. The checks that are currently failing are the ones related to #274

@joverlee521 joverlee521 merged commit a4e12cc into master May 16, 2023
@joverlee521 joverlee521 deleted the fix-pyright-error branch May 16, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant