opencv/modules/python/src2
Vadim Levin 94703fc5b0
Merge pull request #23816 from VadimLevin:dev/vlevin/export-all-caps-enum-constants
Export enums ALL_CAPS version to typing stub files #23816

- Export ALL_CAPS versions alongside from normal names for enum constants, since both versions are available in runtime
- Change enum names entries comments to documentary strings

Before patch
```python
RMat_Access_R: int
RMat_Access_W: int
RMat_Access = int  # One of [R, W]
```
After patch
```python
RMat_Access_R: int
RMAT_ACCESS_R: int
RMat_Access_W: int
RMAT_ACCESS_W: int
RMat_Access = int
"""One of [RMat_Access_R, RMAT_ACCESS_R, RMat_Access_W, RMAT_ACCESS_W]"""
```

Resolves: #23776

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2023-06-16 20:03:19 +03:00
..
typing_stubs_generation Merge pull request #23816 from VadimLevin:dev/vlevin/export-all-caps-enum-constants 2023-06-16 20:03:19 +03:00
copy_typings_stubs_on_success.py Merge pull request #20370 from ddacw:stub-gen-next 2023-05-26 18:25:46 +03:00
cv2_convert.cpp Change Scalar assignment in Python from single value 2023-06-13 10:45:03 +03:00
cv2_convert.hpp Merge pull request #23766 from TolyaTalamanov:at/segmentation-demo-desync 2023-06-13 18:06:19 +03:00
cv2_highgui.cpp Merge pull request #21182 from mshabunin:split-cv2cpp 2021-12-05 12:49:36 +00:00
cv2_highgui.hpp Merge pull request #21182 from mshabunin:split-cv2cpp 2021-12-05 12:49:36 +00:00
cv2_numpy.cpp Merge pull request #23691 from dkurt:pycv_float16_fixes 2023-05-26 18:56:21 +03:00
cv2_numpy.hpp Fixed most clang -Wextra-semi warnings 2022-09-27 18:06:46 -04:00
cv2_util.cpp Proposed solution for issue #23633 2023-05-17 23:06:59 +02:00
cv2_util.hpp Fixed most clang -Wextra-semi warnings 2022-09-27 18:06:46 -04:00
cv2.cpp Merge pull request #23679 from dkurt:py_cv_type_macro 2023-05-25 15:54:41 +03:00
cv2.hpp Merge pull request #21182 from mshabunin:split-cv2cpp 2021-12-05 12:49:36 +00:00
gen2.py Merge pull request #20370 from ddacw:stub-gen-next 2023-05-26 18:25:46 +03:00
hdr_parser.py fix: remove extra '/O' modifier for '/IO' arguments 2023-02-17 13:07:28 +03:00
pycompat.hpp Fix reference counting errors in registerNewType 2023-03-13 23:22:57 -06:00
typing_stubs_generator.py fix: typing module enums references 2023-06-15 21:29:40 +03:00