Skip to content
Myr

Remove unused type checker ignores (#1038)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Remove unused type checker ignores * Add back a type ignore required in py36

authored by Taneli Hukkinen · committed by GitHub · parent cfd07cc · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:httpx/_config.py+1 added-1 removed
100 unmodified lines
101 """102 if self.trust_env and self.verify is True:103 ca_bundle = get_ca_bundle_from_env()104 if ca_bundle is not None:105 self.verify = ca_bundle # type: ignore105 self.verify = ca_bundle106107 if isinstance(self.verify, ssl.SSLContext):108 # Allow passing in our own SSLContext object that's pre-configured.109 context = self.verify
262 unmodified lines
modified:httpx/_models.py+4 added-4 removed
318 unmodified lines
319 if key in self._dict:320 return self._dict[key]321 return default322323 def update(self, params: QueryParamTypes = None) -> None: # type: ignore323 def update(self, params: QueryParamTypes = None) -> None:324 if not params:325 return326327 params = QueryParams(params)
769 unmodified lines
1097 """1098 value = None1099 for cookie in self.jar:1100 if cookie.name == name:1101 if domain is None or cookie.domain == domain: # type: ignore1101 if domain is None or cookie.domain == domain:1102 if path is None or cookie.path == path:1103 if value is not None:1104 message = f"Multiple cookies exist with name={name}"1105 raise CookieConflict(message)
13 unmodified lines
11191120 remove = []1121 for cookie in self.jar:1122 if cookie.name == name:1123 if domain is None or cookie.domain == domain: # type: ignore1123 if domain is None or cookie.domain == domain:1124 if path is None or cookie.path == path:1125 remove.append(cookie)11261127 for cookie in remove:1128 self.jar.clear(cookie.domain, cookie.path, cookie.name) # type: ignore1128 self.jar.clear(cookie.domain, cookie.path, cookie.name)11291130 def clear(self, domain: str = None, path: str = None) -> None:1131 """1132 Delete all cookies. Optionally include a domain and path in
70 unmodified lines