Skip to content

CompatHelper: bump compat for "ImageShow" to "0.3"#952

Merged
johnnychen94 merged 3 commits intomasterfrom
compathelper/new_version/2021-04-16-01-03-07-574-1798429937
Apr 24, 2021
Merged

CompatHelper: bump compat for "ImageShow" to "0.3"#952
johnnychen94 merged 3 commits intomasterfrom
compathelper/new_version/2021-04-16-01-03-07-574-1798429937

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This pull request changes the compat entry for the ImageShow package from 0.1, 0.2 to 0.1, 0.2, 0.3.

This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry. It is your responsibility to make sure that your package tests pass before you merge this pull request.

@johnnychen94 johnnychen94 force-pushed the compathelper/new_version/2021-04-16-01-03-07-574-1798429937 branch 2 times, most recently from 804f770 to 6ff812f Compare April 16, 2021 02:56
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2021

Codecov Report

Merging #952 (87f8eea) into master (91a35ed) will decrease coverage by 0.25%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #952      +/-   ##
==========================================
- Coverage   86.21%   85.96%   -0.26%     
==========================================
  Files           9        9              
  Lines        1023     1026       +3     
==========================================
  Hits          882      882              
- Misses        141      144       +3     
Impacted Files Coverage Δ
src/Images.jl 14.28% <0.00%> (-10.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91a35ed...87f8eea. Read the comment docs.

@johnnychen94 johnnychen94 force-pushed the compathelper/new_version/2021-04-16-01-03-07-574-1798429937 branch from 6ff812f to 81c21f1 Compare April 24, 2021 08:01
Comment thread src/Images.jl Outdated
import ImageShow
if isdefined(ImageShow, :play)
@doc (@doc ImageShow.play)
play = ImageShow.play
Copy link
Copy Markdown

@kimikage kimikage Apr 24, 2021

Choose a reason for hiding this comment

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

Is this a problem with using ImageShow: play?
To me this looks like a "variable" assignment. Of course, this may not be a problem in practical use.

Copy link
Copy Markdown
Member

@johnnychen94 johnnychen94 Apr 24, 2021

Choose a reason for hiding this comment

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

Yes, as we're making Images an umbralla package, users of Images are not expected to have ImageShow directly installed, so this makes it possible to do Images.play instead of ImageShow.play

julia> using Images
[ Info: Precompiling Images [916415d5-f1e6-5110-898d-aaa5f9f070e0]

julia> ImageShow.play
ERROR: UndefVarError: ImageShow not defined
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

julia> Images.play # a function alias to ImageShow (5 instead of 1 methods)
play (generic function with 5 methods)

To me this looks like a "variable" assignment.

Good catch! I didn't consider the possibility of the re-binding things, I just declared them as const.

so as to avoid unexpected re-bind
@johnnychen94 johnnychen94 merged commit 77b3180 into master Apr 24, 2021
@johnnychen94 johnnychen94 deleted the compathelper/new_version/2021-04-16-01-03-07-574-1798429937 branch April 24, 2021 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants