fangwei123456 / spikingjelly

SpikingJelly is an open-source deep learning framework for Spiking Neural Network (SNN) based on PyTorch.
https://spikingjelly.readthedocs.io
Other
1.4k stars 246 forks source link

fix api typo #569

Closed frostylight closed 3 months ago

frostylight commented 3 months ago

修正了一些错字和类型标注

项目里类型标注没有规范,同时存在Optional[]or None两种写法,我加的是or None

frostylight commented 3 months ago

查询了一些资料,float or None似乎并不是一个好的类型注解

明天如果没有其他人pr,我会尝试交一个新的pr修正