Merge pull request #5943 from prplz/wifi-typing-fixes

Wifi typing fixes
This commit is contained in:
Limor "Ladyada" Fried 2022-01-29 12:35:10 -05:00 committed by GitHub
commit f4872d3464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,7 +304,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_ap_obj, wifi_radio_stop_ap);
//| *, //| *,
//| channel: Optional[int] = 0, //| channel: Optional[int] = 0,
//| bssid: Optional[ReadableBuffer] = b"", //| bssid: Optional[ReadableBuffer] = b"",
//| timeout: Optional[float] = None) -> bool: //| timeout: Optional[float] = None) -> None:
//| """Connects to the given ssid and waits for an ip address. Reconnections are handled //| """Connects to the given ssid and waits for an ip address. Reconnections are handled
//| automatically once one connection succeeds. //| automatically once one connection succeeds.
//| //|
@ -507,7 +507,7 @@ const mp_obj_property_t wifi_radio_ap_info_obj = {
MP_ROM_NONE }, MP_ROM_NONE },
}; };
//| def ping(self, ip: ipaddress.IPv4Address, *, timeout: Optional[float] = 0.5) -> float: //| def ping(self, ip: ipaddress.IPv4Address, *, timeout: Optional[float] = 0.5) -> Optional[float]:
//| """Ping an IP to test connectivity. Returns echo time in seconds. //| """Ping an IP to test connectivity. Returns echo time in seconds.
//| Returns None when it times out.""" //| Returns None when it times out."""
//| ... //| ...