Skip to content
Myr

Fix invalid f-string (#375)

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

authored by 秋葉 · committed by Seth Michael Larson · parent 5dc646f · Browse files · 1 file+3 added−3 removed
This commit

State

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

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:httpx/config.py+3 added-3 removed
267 unmodified lines
268 for version in http_versions269 }270 else:271 raise TypeError(272 f"HTTP version should be a string or list of strings, "273 "but got {type(http_versions)}"272 "HTTP version should be a string or list of strings, "273 f"but got {type(http_versions)}"274 )275276 for version in self.http_versions:277 if version not in ("HTTP/1.1", "HTTP/2"):278 raise ValueError(f"Unsupported HTTP version {version!r}.")279280 if not self.http_versions:281 raise ValueError(f"HTTP versions cannot be an empty list.")281 raise ValueError("HTTP versions cannot be an empty list.")282283 @property284 def alpn_identifiers(self) -> typing.List[str]:285 """
49 unmodified lines