Skip to content

fix: AST nodes required usage imports#23835

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
VadimLevin:dev/vlevin/fix-ast-nodes-required-usage-imports
Jun 20, 2023
Merged

fix: AST nodes required usage imports#23835
asmorkalov merged 1 commit intoopencv:4.xfrom
VadimLevin:dev/vlevin/fix-ast-nodes-required-usage-imports

Conversation

@VadimLevin
Copy link
Copy Markdown
Contributor

Correct fix for #23821

Apart adding import cv2.mat_wrapper adds import cv2.gapi.wip.draw import to cv2/typing/__init__.py

cv2/typing/__init__.py imports after fix:

import cv2
import cv2.dnn
import cv2.gapi.wip.draw
import cv2.mat_wrapper
import numpy
import typing

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

@VadimLevin VadimLevin added this to the 4.8.0 milestone Jun 20, 2023
@VadimLevin VadimLevin requested a review from asmorkalov June 20, 2023 13:34
@VadimLevin VadimLevin self-assigned this Jun 20, 2023
@asmorkalov asmorkalov merged commit fe4f5b5 into opencv:4.x Jun 20, 2023
@asmorkalov asmorkalov mentioned this pull request Jul 27, 2023
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.

2 participants