pycharm:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future

wrong description:

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_quint8 = np.dtype([("quint8", np.uint8, 1)])
 

Solution:

Click in the wrong link and follow the prompts to modify

E.g:

_np_qint32 = e.g. dtype ([("qint32", e.g. int32, 1 )])

Change it to:

_np_qint32 = e.g. dtype ([("qint32", e.g. int32, (1,) )])

Rerun after saving

Published 81 original articles , received 6 likes , and visited 10,000+

Related Posts