Skip to content

Commit 4d62c18

Browse files
authored
[ipaddress] Add default value for strict param (#14451)
1 parent 14474af commit 4d62c18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/ipaddress.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class IPv4Address(_BaseV4, _BaseAddress):
137137
def ipv6_mapped(self) -> IPv6Address: ...
138138

139139
class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]):
140-
def __init__(self, address: object, strict: bool = ...) -> None: ...
140+
def __init__(self, address: object, strict: bool = True) -> None: ...
141141

142142
class IPv4Interface(IPv4Address):
143143
netmask: IPv4Address
@@ -197,7 +197,7 @@ class IPv6Address(_BaseV6, _BaseAddress):
197197
def __eq__(self, other: object) -> bool: ...
198198

199199
class IPv6Network(_BaseV6, _BaseNetwork[IPv6Address]):
200-
def __init__(self, address: object, strict: bool = ...) -> None: ...
200+
def __init__(self, address: object, strict: bool = True) -> None: ...
201201
@property
202202
def is_site_local(self) -> bool: ...
203203

0 commit comments

Comments
 (0)