Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logwriter在pycharm中的警告 #875

Closed
foreverseer opened this issue Dec 21, 2020 · 3 comments
Closed

Logwriter在pycharm中的警告 #875

foreverseer opened this issue Dec 21, 2020 · 3 comments
Assignees

Comments

@foreverseer
Copy link
Contributor

VisualDL/visualdl/writer/writer.py
LogWriter.add_image函数
注释
Args:
tag (string): Data identifier
img (numpy.ndarray): Image represented by a numpy.array
step (int): Step of image
walltime (int): Wall time of image
dataformats (string): Format of image
第二个参数img的注释需修改为img (np.ndarray)
Args:
tag (string): Data identifier
img (np.ndarray): Image represented by a numpy.array
step (int): Step of image
walltime (int): Wall time of image
dataformats (string): Format of image
因为之前已经进行了import numpy as np
如果此处写numpy.ndarray会在pycharm中报一个警告
“Expected type 'Type[ndarray]', got 'ndarray' instead”

@PeterPanZH
Copy link
Collaborator

@ShenYuhan look look

@ShenYuhan
Copy link
Collaborator

多谢意见,明白您意思了,非常诚挚的邀请您可以给我们提个pr来修复此不该出现的warning,不知道有没有兴趣

@PeterPanZH
Copy link
Collaborator

fixed by #877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants