mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:14:54 +02:00
Fix mypy joinpath errors (#9871)
* Fix mypy joinpath errors * update changelog
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user