Skip to content

fix: use export_name as resolved typename for AliasTypeNode#27997

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
VadimLevin:dev/vlevin/fix-alias-type-node-resolved-typename
Nov 12, 2025
Merged

fix: use export_name as resolved typename for AliasTypeNode#27997
asmorkalov merged 1 commit intoopencv:4.xfrom
VadimLevin:dev/vlevin/fix-alias-type-node-resolved-typename

Conversation

@VadimLevin
Copy link
Copy Markdown
Contributor

Use ctype_name as export name for AliasTypeNode if export name is not explicitly provided.

Resolves #27995

AliasTypeNode.ctype_name might be overwritten in create_type_node, so AliasTypeNode.export_name should be used as resolved typename.

Pull Request Readiness Checklist

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

  • I agree to contribute to the project under Apache 2 License.
  • 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
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Use ctype_name as export name for AliasTypeNode if export name is not
explicitly provided.
@VadimLevin VadimLevin force-pushed the dev/vlevin/fix-alias-type-node-resolved-typename branch from b99358b to 17ce5a2 Compare November 12, 2025 07:30
@asmorkalov asmorkalov self-assigned this Nov 12, 2025
@asmorkalov asmorkalov added this to the 4.13.0 milestone Nov 12, 2025
@asmorkalov asmorkalov merged commit 8f0c9ff into opencv:4.x Nov 12, 2025
23 of 26 checks passed
@asmorkalov asmorkalov mentioned this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCV Python Bindings Import Failure Due to Invalid Syntax in typing/init.py

2 participants