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

Raise exception if CompressedFile used on incompatible file #18888

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Sep 25, 2024

Surprised (or not actually ...) that mypy didn't catch this.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

Surprised (or not actually ...) that mypy didn't catch this.
@mvdbeek mvdbeek added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Sep 25, 2024
@github-actions github-actions bot added this to the 24.2 milestone Sep 25, 2024
@mvdbeek mvdbeek merged commit 00ec042 into galaxyproject:dev Sep 25, 2024
50 of 54 checks passed
Copy link
Member

@nsoranzo nsoranzo left a comment

Choose a reason for hiding this comment

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

Surprised (or not actually ...) that mypy didn't catch this.

We have not yet enabled the optional enable_error_code = possibly-undefined in mypy.ini, which should generate an error here.
I tested it and it found 188 errors, but sadly not this one, which seems a bug I'm going to report upstream.

@nsoranzo nsoranzo deleted the compressed_file_tweak branch September 25, 2024 20:24
@nsoranzo
Copy link
Member

Surprised (or not actually ...) that mypy didn't catch this.

We have not yet enabled the optional enable_error_code = possibly-undefined in mypy.ini, which should generate an error here. I tested it and it found 188 errors, but sadly not this one, which seems a bug I'm going to report upstream.

In case anyone is interested, here's the new mypy issue: python/mypy#17837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/util kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants