-
Notifications
You must be signed in to change notification settings - Fork 89
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 typo #1227
Closed
Closed
fix typo #1227
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule dlpack
updated
21 files
+35 −0 | .github/workflows/main.yaml | |
+0 −46 | .travis.yml | |
+14 −0 | NEWS.md | |
+3 −3 | README.md | |
+0 −2 | apps/from_numpy/Makefile | |
+0 −107 | apps/from_numpy/main.py | |
+0 −52 | apps/from_numpy/numpy_dlpack.c | |
+1 −0 | apps/numpy_dlpack/.gitignore | |
+23 −0 | apps/numpy_dlpack/README.md | |
+2 −0 | apps/numpy_dlpack/dlpack/__init__.py | |
+137 −0 | apps/numpy_dlpack/dlpack/dlpack.py | |
+98 −0 | apps/numpy_dlpack/dlpack/from_numpy.py | |
+79 −0 | apps/numpy_dlpack/dlpack/to_numpy.py | |
+36 −0 | apps/numpy_dlpack/test.py | |
+38 −0 | apps/numpy_dlpack/test_pure_numpy.py | |
+2 −2 | contrib/dlpack/dlpackcpp.h | |
+0 −14 | docs/Doxyfile | |
+1 −1 | docs/Doxyfile.in | |
+66 −17 | include/dlpack/dlpack.h | |
+0 −12 | tests/travis/run_test.sh | |
+0 −5 | tests/travis/setup.sh |
Submodule pybind11
updated
27 files
+1 −0 | .clang-tidy | |
+4 −3 | .github/CONTRIBUTING.md | |
+17 −17 | .github/workflows/ci.yml | |
+1 −1 | .github/workflows/configure.yml | |
+2 −2 | .github/workflows/pip.yml | |
+1 −1 | .github/workflows/upstream.yml | |
+2 −2 | .pre-commit-config.yaml | |
+0 −31 | docs/changelog.rst | |
+2 −0 | include/pybind11/cast.h | |
+1 −3 | include/pybind11/chrono.h | |
+2 −2 | include/pybind11/detail/class.h | |
+18 −0 | include/pybind11/detail/common.h | |
+7 −3 | include/pybind11/detail/descr.h | |
+96 −12 | include/pybind11/detail/internals.h | |
+3 −3 | include/pybind11/embed.h | |
+14 −7 | include/pybind11/pybind11.h | |
+113 −63 | tests/CMakeLists.txt | |
+70 −0 | tests/test_const_name.cpp | |
+31 −0 | tests/test_const_name.py | |
+1 −1 | tests/test_custom_type_casters.cpp | |
+9 −1 | tests/test_exceptions.cpp | |
+8 −0 | tests/test_exceptions.py | |
+22 −3 | tests/test_operator_overloading.cpp | |
+11 −2 | tests/test_operator_overloading.py | |
+4 −0 | tests/test_pytypes.cpp | |
+8 −0 | tests/test_pytypes.py | |
+1 −1 | tests/test_virtual_functions.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or should it just be
ak._v2.contents.EmptyArray
? Contents module already imports all the things. In this module, there are a number of these, but the others follow the lower-case spelling.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There shouldn't be any lower camelCase module names at all.
Using
I found the one you just found and another one in indexedarray.py (in addition to the original), though that's it; the rest of the regex matches are not instances of this copy-paste error.
As for whether it should be
ak._v2.contents.emptyarray.EmptyArray
orak._v2.contents.EmptyArray
, I slightly prefer the latter, though I'd make it fit the context of the surrounding code, if relevant.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, in that case my version is fine, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your version is fine, though there's another one just like this in indexedarray.py:
Since you reported the first one in unmaskedarray.py, I figure it's only a matter of time before you hit the one in indexedarray.py, too.
Meanwhile, I'm more worried about the build failing. You made a change that can't affect compilation, and yet every compilation is failing (in pybind11, which was recently updated...).