Fix mypy joinpath errors (#9871)

* Fix mypy joinpath errors

* update changelog
This commit is contained in:
ohemorange
2024-01-05 16:35:37 -08:00
committed by GitHub
parent 9d8eb6ccfd
commit 926d0c7e0f
7 changed files with 17 additions and 16 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
### Fixed
*
* Updates `joinpath` syntax to only use one addition per call, because the multiple inputs
version was causing mypy errors on Python 3.10.
More details about these changes can be found on our GitHub repo.
+1 -1
View File
@@ -465,7 +465,7 @@ def dir_setup(test_dir: str, pkg: str) -> Tuple[str, str, str]: # pragma: no co
filesystem.chmod(config_dir, constants.CONFIG_DIRS_MODE)
filesystem.chmod(work_dir, constants.CONFIG_DIRS_MODE)
test_dir_ref = importlib_resources.files(pkg).joinpath("testdata", test_dir)
test_dir_ref = importlib_resources.files(pkg).joinpath("testdata").joinpath(test_dir)
with importlib_resources.as_file(test_dir_ref) as path:
shutil.copytree(
path, os.path.join(temp_dir, test_dir), symlinks=True)