코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1def ( 2 self, 3 auth: _t.AuthType, 4 url: _t.UriType = "", 5) -> None: 6 7 if auth is None: 8 url_auth = get_auth_from_url(cast(str, self.url)) 9 auth = url_auth if any(url_auth) else None 10 11 if auth: 12 if isinstance(auth, tuple) and len(auth) == 2: 13 14 auth_handler = HTTPBasicAuth(*auth) 15 else: 16 17 auth_handler = cast("Callable[..., PreparedRequest]", auth) 18 19 r = auth_handler(self) 20 21 self.__dict__.update(r.__dict__) 22 23 self.prepare_content_length(self.body)