From df2fe39bb6f6bc1f1181d2eb08230713697c38a1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 11 Feb 2025 11:36:58 +0100 Subject: [PATCH 1/2] resource_reader.py: Fix typo --- gin/resource_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin/resource_reader.py b/gin/resource_reader.py index 7aeaf4c..da6353b 100644 --- a/gin/resource_reader.py +++ b/gin/resource_reader.py @@ -63,7 +63,7 @@ def _parse_config_path(config_path: str) -> str: Path is split into head and filename using `os.path.split`. The head is treated as a Python package and the filename as a gin file. Path to where the - package is located on the fileystem is determined and then joined with the + package is located on the filesystem is determined and then joined with the filename. `importlib.resources` was not used because it is new in python 3.7. From 195520a879be1438ff395c30f26e10a465323573 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 11 Feb 2025 11:39:27 +0100 Subject: [PATCH 2/2] config.py: Fix typo --- gin/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin/config.py b/gin/config.py index 5e060aa..76da703 100644 --- a/gin/config.py +++ b/gin/config.py @@ -1123,7 +1123,7 @@ def _might_have_parameter(fn_or_cls, arg_name): Args: fn_or_cls: The function or class to check. - arg_name: The name fo the parameter. + arg_name: The name of the parameter. Returns: Whether `arg_name` might be a valid argument of `fn`.