mrjohannchang / winwifi

Windows Wi-Fi CLI utility written in Python
https://pypi.org/project/winwifi/
Mozilla Public License 2.0
35 stars 19 forks source link

Bug in wlan_func_generator #10

Open skamensky opened 4 years ago

skamensky commented 4 years ago

https://github.com/changyuheng/winwifi.py/blob/708029c86505e063f7812ac51439d517e2085a96/src/winwifi/main.py#L54

I'm not sure why this mistake didn't break anything, but the ctype function generator sets a restypes attribute instead of what it should be:restype (singular, without an s at the end).

Sources:

The documentation A Stackoverflow answer correcting the same mistake.