'Autocompletion didn't highlight in vscode python for some variable

that variabel is return np.ndarray when i print(type(im)).

But my vscode didn't show autocompletion when i'm trying to access one of method in np.ndarray with start using dot like im.<method>. While It work's when I try np.ndarray().<method>

enter image description here enter image description here

My Full Code:

import cv2
import numpy as np

# READ IMAGE
im = cv2.imread('./sampel/fotopendaftaran.jpg',cv2.IMREAD_UNCHANGED) # IMREAD_GRAYSCALE berarti warna abu-abu

im.round()
np.ndarray(shape=(2,2)).round()

# DISPLAY IMAGE
cv2.imshow('Contoh',im)
cv2.waitKey(0)
cv2.destroyAllWindows()

# WRITE IMAGE
cv2.imwrite('./sampel/output.jpg',im)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source