Skip to content

you accidentally made __init__ anti-linter #131

Closed
@kelvinwop

Description

@kelvinwop

Expected behaviour

be detected by linter

Actual behaviour

not detected by linter

Steps to reproduce

  • install opencv-python
  • use vscode >extension microsoft python linter
  • try to use cv2 methods
  • RED SQUIGGLY LINES

I blame:

\cv2\__init__.py:

import importlib

from .cv2 import *
from .data import *

# wildcard import above does not import "private" variables like __version__
# this makes them available
globals().update(importlib.import_module('cv2.cv2').__dict__)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions