Skip to content

Commit 843ff5d

Browse files
committed
Added type hints to wiznet
1 parent 5163618 commit 843ff5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-bindings/wiznet/wiznet5k.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ STATIC mp_obj_t wiznet5k_make_new(const mp_obj_type_t *type, size_t n_args, cons
8484
return ret;
8585
}
8686

87-
//| connected: Any = ...
87+
//| connected: bool = ...
8888
//| """(boolean, readonly) is this device physically connected?"""
8989
//|
9090

@@ -101,7 +101,7 @@ const mp_obj_property_t wiznet5k_connected_obj = {
101101
(mp_obj_t)&mp_const_none_obj},
102102
};
103103

104-
//| dhcp: Any = ...
104+
//| dhcp: bool = ...
105105
//| """(boolean, readwrite) is DHCP active on this device?
106106
//|
107107
//| * set to True to activate DHCP, False to turn it off"""
@@ -134,7 +134,7 @@ const mp_obj_property_t wiznet5k_dhcp_obj = {
134134
(mp_obj_t)&mp_const_none_obj},
135135
};
136136

137-
//| def ifconfig(self, params: Any = None) -> Any:
137+
//| def ifconfig(self, params: tuple = None) -> Optional[tuple]:
138138
//| """Called without parameters, returns a tuple of
139139
//| (ip_address, subnet_mask, gateway_address, dns_server)
140140
//|

0 commit comments

Comments
 (0)