CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 17:12:46 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"d8730300aae0a3faddfa4d35db9e4e56"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=VyaZsYXvlbT9F8SlAtOzuER8Mb0W25xzogPPfHAe0Hc5o0RqbQdJCOz0jPk%2BFHXJ3otyhtunvbfwSQvBrIMb5vwH1IU5fNMiFX%2FpCO03N4T2Rqyknj17EHlcqew3ddVHifnpAGE9GWkeS8oi%2B2ua%2FEQ1IDF7nqZGtjxPcZ1UdWPuQQ53YAxPtINZPojRdW02ROaeujL6PRyQL8ODOG%2FMICja3XnSC0xkiEkYETxz%2F4J0H3o7MzeWNFUpCly4figQBTv4IyrstUF2Kxgxj611YQ%3D%3D--AT8d2CCH5NiuGqeB--xuTgmT20oR2ucmR9JV1CWw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1954598551.1753117966; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 17:12:46 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 17:12:46 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9D76:6AF78:17C6CF:1BF30C:687E750E
Merge pull request #24022 from VadimLevin:dev/vlevin/python-typing-cuda · opencv/opencv@9519e67 · GitHub
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/api_refinement.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/ast_utils.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/generation.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/predefined_types.py
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 9519e67
authored
Merge pull request #24022 from VadimLevin:dev/vlevin/python-typing-cuda
Fix python typing stubs generation for CUDA modules #24022
resolves #23946
resolves #23945
resolves opencv/opencv-python#871
### 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
- [ ] 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 CMake1 parent b0cbd6e commit 9519e67Copy full SHA for 9519e67
File tree
Expand file treeCollapse file tree
4 files changed
+112
-42
lines changedFilter options
- modules/python/src2/typing_stubs_generation
Expand file treeCollapse file tree
4 files changed
+112
-42
lines changedmodules/python/src2/typing_stubs_generation/api_refinement.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/api_refinement.py+62-6Lines changed: 62 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 |
| |
11 | 13 |
| |
12 | 14 |
| |
| 15 | + | |
13 | 16 |
| |
14 | 17 |
| |
15 | 18 |
| |
| |||
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 |
| - | |
| 63 | + | |
61 | 64 |
| |
62 | 65 |
| |
63 | 66 |
| |
64 | 67 |
| |
65 | 68 |
| |
66 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
67 | 122 |
| |
68 | 123 |
| |
69 | 124 |
| |
| |||
76 | 131 |
| |
77 | 132 |
| |
78 | 133 |
| |
| 134 | + | |
79 | 135 |
| |
80 | 136 |
| |
81 | 137 |
| |
|
modules/python/src2/typing_stubs_generation/ast_utils.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/ast_utils.py+28-1Lines changed: 28 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
407 | 434 |
| |
408 | 435 |
| |
409 | 436 |
|
modules/python/src2/typing_stubs_generation/generation.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/generation.py+18-35Lines changed: 18 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 |
| |
12 | 15 |
| |
13 | 16 |
| |
14 | 17 |
| |
15 |
| - | |
16 |
| - | |
| 18 | + | |
| 19 | + | |
17 | 20 |
| |
18 | 21 |
| |
19 | 22 |
| |
| |||
105 | 108 |
| |
106 | 109 |
| |
107 | 110 |
| |
108 |
| - | |
109 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
110 | 114 |
| |
111 | 115 |
| |
112 | 116 |
| |
| |||
536 | 540 |
| |
537 | 541 |
| |
538 | 542 |
| |
539 |
| - | |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 | 543 |
| |
564 | 544 |
| |
565 | 545 |
| |
| |||
582 | 562 |
| |
583 | 563 |
| |
584 | 564 |
| |
585 |
| - | |
| 565 | + | |
586 | 566 |
| |
587 | 567 |
| |
588 | 568 |
| |
| |||
600 | 580 |
| |
601 | 581 |
| |
602 | 582 |
| |
603 |
| - | |
604 |
| - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
605 | 586 |
| |
606 | 587 |
| |
607 | 588 |
| |
| |||
625 | 606 |
| |
626 | 607 |
| |
627 | 608 |
| |
628 |
| - | |
| 609 | + | |
| 610 | + | |
629 | 611 |
| |
630 | 612 |
| |
631 | 613 |
| |
632 |
| - | |
| 614 | + | |
| 615 | + | |
633 | 616 |
| |
634 | 617 |
| |
635 | 618 |
| |
|
modules/python/src2/typing_stubs_generation/predefined_types.py
Copy file name to clipboardExpand all lines: modules/python/src2/typing_stubs_generation/predefined_types.py+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 |
| |
26 | 30 |
| |
27 | 31 |
| |
|
You can’t perform that action at this time.
0 commit comments