diff options
| author | zhanpon <pon.zhan@gmail.com> | 2023-01-03 06:28:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-02 15:28:37 -0600 |
| commit | dacd84d01f3037d30adf387e2e1bfc95f55dedfe (patch) | |
| tree | 121526dfdc46b2a8602489815587ba357accbd4c | |
| parent | 6cfdca5825e3557f66fd00d0c2f4407c3e1e0d1e (diff) | |
| download | urllib3-dacd84d01f3037d30adf387e2e1bfc95f55dedfe.tar.gz | |
Fix the type hint of PoolKey.key_retries by adding bool to the union
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
| -rw-r--r-- | changelog/2865.bugfix.rst | 1 | ||||
| -rw-r--r-- | src/urllib3/poolmanager.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog/2865.bugfix.rst b/changelog/2865.bugfix.rst new file mode 100644 index 00000000..8a5cb954 --- /dev/null +++ b/changelog/2865.bugfix.rst @@ -0,0 +1 @@ +Fixed the type hint of ``PoolKey.key_retries`` by adding ``bool`` to the union. diff --git a/src/urllib3/poolmanager.py b/src/urllib3/poolmanager.py index 1ff8cbf3..538bed3c 100644 --- a/src/urllib3/poolmanager.py +++ b/src/urllib3/poolmanager.py @@ -66,7 +66,7 @@ class PoolKey(typing.NamedTuple): key_host: str key_port: int | None key_timeout: Timeout | float | int | None - key_retries: Retry | int | None + key_retries: Retry | bool | int | None key_block: bool | None key_source_address: tuple[str, int] | None key_key_file: str | None |
