Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CV2 stub defines type aliases with circular references #213

Copy link
Copy link
Closed
@erictraut

Description

@erictraut
Issue body actions

The cv2/__init__.pyi defines several type aliases that are invalid because they refer to themselves. This leaves them Unknown.

Here are a few examples:

VariationalRefinement = _mod_cv2.VariationalRefinement
VideoCapture = _mod_cv2.VideoCapture
VideoWriter = _mod_cv2.VideoWriter

Since _mod_cv2 refers back to this same type stub, these are effectively equivalent to:

VariationalRefinement = VariationalRefinement
VideoCapture = VideoCapture
VideoWriter = VideoWriter

Pyright correctly flags these as errors in the stub. They should be fixed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.