Skip to content

Commit a4a3836

Browse files
committed
Fix radio union types
1 parent 1eb0ae6 commit a4a3836

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

shared-bindings/wifi/Radio.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ MP_PROPERTY_GETSET(wifi_radio_enabled_obj,
9999
(mp_obj_t)&wifi_radio_get_enabled_obj,
100100
(mp_obj_t)&wifi_radio_set_enabled_obj);
101101

102-
//| hostname: Union[str | ReadableBuffer]
102+
//| hostname: Union[str, ReadableBuffer]
103103
//| """Hostname for wifi interface. When the hostname is altered after interface started/connected
104104
//| the changes would only be reflected once the interface restarts/reconnects."""
105105
static mp_obj_t wifi_radio_get_hostname(mp_obj_t self_in) {
@@ -325,8 +325,8 @@ MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_station_obj, wifi_radio_stop_station);
325325

326326
//| def start_ap(
327327
//| self,
328-
//| ssid: Union[str | ReadableBuffer],
329-
//| password: Union[str | ReadableBuffer] = b"",
328+
//| ssid: Union[str, ReadableBuffer],
329+
//| password: Union[str, ReadableBuffer] = b"",
330330
//| *,
331331
//| channel: int = 1,
332332
//| authmode: Iterable[AuthMode] = (),
@@ -438,11 +438,11 @@ MP_PROPERTY_GETTER(wifi_radio_ap_active_obj,
438438

439439
//| def connect(
440440
//| self,
441-
//| ssid: Union[str | ReadableBuffer],
442-
//| password: Union[str | ReadableBuffer] = b"",
441+
//| ssid: Union[str, ReadableBuffer],
442+
//| password: Union[str, ReadableBuffer] = b"",
443443
//| *,
444444
//| channel: int = 0,
445-
//| bssid: Optional[Union[str | ReadableBuffer]] = None,
445+
//| bssid: Optional[Union[str, ReadableBuffer]] = None,
446446
//| timeout: Optional[float] = None,
447447
//| ) -> None:
448448
//| """Connects to the given ssid and waits for an ip address. Reconnections are handled

0 commit comments

Comments
 (0)