Remove type constraints for copy of ArrayPartition - #276
Conversation
|
Current version should be ok now. |
|
I tried running the formatter like this: julia> using JuliaFormatter
julia> format_file("src/array_partition.jl"; style=SciMLStyle())
falseBut it did alot of changes to the file and did not touch the lines changed by this PR so I didn't commit it. I also tried with the default style with the same result. Is there some other way to run it or is the file unformatted on current main? |
|
The format changed. I wouldn't worry about that. I'm going to fix formatter things in the near future. It seems you branched off of an earlier master that fixed the Project.toml form though. Can you try rebasing? |
Hmmm, I can't seem to find any missing commit on the branch. Below is the last one which is not mine. |
|
Seems like it was just an aqua issue on v1.6 so I disabled it for earlier julia |
Fix #275
Seems like it was ok to just remove all type constraints. I did a quick check with a dummy array type and the performance was identical to current main.
I tried to do the same thing forzero, but then it would no longer infer (even with the same construction as in the example in #275). Since I don't seem to need it for my use case I just left it as is.Also did the same for
zerosince it had the same type of issue.The tests might seem a bit silly. I put it in a separate commit in case you don't want it.