From b104524470ad685d40370f89dfb3537150ea1f9c Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 11 Nov 2024 23:31:25 +0800 Subject: [PATCH] Fix typos Found via `codespell -H` and `typos --hidden --format brief` --- podman/api/typing_extensions.py | 4 ++-- podman/api/uds.py | 2 +- podman/domain/containers.py | 2 +- podman/tests/integration/test_images.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/podman/api/typing_extensions.py b/podman/api/typing_extensions.py index 531a7ba5..ff698f4c 100644 --- a/podman/api/typing_extensions.py +++ b/podman/api/typing_extensions.py @@ -22,7 +22,7 @@ # After PEP 560, internal typing API was substantially reworked. # This is especially important for Protocol class which uses internal APIs -# quite extensivelly. +# quite extensively. PEP_560 = sys.version_info[:3] >= (3, 7, 0) if PEP_560: @@ -2097,7 +2097,7 @@ def _is_dunder(name): return len(name) > 4 and name.startswith('__') and name.endswith('__') # Prior to Python 3.7 types did not have `copy_with`. A lot of the equality - # checks, argument expansion etc. are done on the _subs_tre. As a result we + # checks, argument expansion etc. are done on the _subs_tree. As a result we # can't provide a get_type_hints function that strips out annotations. class AnnotatedMeta(typing.GenericMeta): diff --git a/podman/api/uds.py b/podman/api/uds.py index c2583061..0f512610 100644 --- a/podman/api/uds.py +++ b/podman/api/uds.py @@ -153,7 +153,7 @@ def __init__( Examples: requests.Session.mount( - "http://", UDSAdapater("http+unix:///run/user/1000/podman/podman.sock")) + "http://", UDSAdapter("http+unix:///run/user/1000/podman/podman.sock")) """ self.poolmanager: Optional[UDSPoolManager] = None diff --git a/podman/domain/containers.py b/podman/domain/containers.py index f7fdd340..c99ed926 100644 --- a/podman/domain/containers.py +++ b/podman/domain/containers.py @@ -176,7 +176,7 @@ def exec_run( ``response_code``: The exit code of the provided command. ``None`` if ``stream``. ``output``: - If ``stream``, then a generator yeilding response chunks. + If ``stream``, then a generator yielding response chunks. If ``demux``, then a tuple of (``stdout``, ``stderr``). Else the response content. diff --git a/podman/tests/integration/test_images.py b/podman/tests/integration/test_images.py index e9eed41f..298d13ec 100644 --- a/podman/tests/integration/test_images.py +++ b/podman/tests/integration/test_images.py @@ -44,7 +44,7 @@ def test_image_crud(self): """Test Image CRUD. Notes: - Written to maximize re-use of pulled image. + Written to maximize reuse of pulled image. """ with self.subTest("Pull Alpine Image"):