Skip to content

Commit 0909343

Browse files
authored
Make HTTPPasswordMgrWithDefaultRealm realm optional (#3976)
* Make HTTPPasswordMgrWithDefaultRealm realm optional * Optional realm in HPMWDefaultRealm.find_password
1 parent d55df54 commit 0909343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/3/urllib/request.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ class HTTPPasswordMgr:
108108
def find_user_password(self, realm: str, authuri: str) -> Tuple[Optional[str], Optional[str]]: ...
109109

110110
class HTTPPasswordMgrWithDefaultRealm(HTTPPasswordMgr):
111-
def add_password(self, realm: str, uri: Union[str, Sequence[str]],
111+
def add_password(self, realm: Optional[str], uri: Union[str, Sequence[str]],
112112
user: str, passwd: str) -> None: ...
113-
def find_user_password(self, realm: str, authuri: str) -> Tuple[Optional[str], Optional[str]]: ...
113+
def find_user_password(self, realm: Optional[str], authuri: str) -> Tuple[Optional[str], Optional[str]]: ...
114114

115115
class HTTPPasswordMgrWithPriorAuth(HTTPPasswordMgrWithDefaultRealm):
116116
def add_password(
117117
self,
118-
realm: str,
118+
realm: Optional[str],
119119
uri: Union[str, Sequence[str]],
120120
user: str,
121121
passwd: str,

0 commit comments

Comments
 (0)