diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2024-07-19 13:03:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 20:03:07 +0200 |
commit | 24b73da9e6fbc93845aeff42b16567bf6edc95b8 (patch) | |
tree | 5c65e366e5c1d492e35a0210b117d1c26c66cf42 | |
parent | 4447d3339c39753489cdc14c5bab6210107e2d65 (diff) | |
download | spack-24b73da9e6fbc93845aeff42b16567bf6edc95b8.tar.gz spack-24b73da9e6fbc93845aeff42b16567bf6edc95b8.tar.bz2 spack-24b73da9e6fbc93845aeff42b16567bf6edc95b8.tar.xz spack-24b73da9e6fbc93845aeff42b16567bf6edc95b8.zip |
docs: util/environment.py: use `re.Pattern[str]` instead of `re` (#45329)
* docs: util/environment.py: use `re.Pattern[str]` instead of `re`
* docs: sphinx==7.4.6
-rw-r--r-- | lib/spack/docs/requirements.txt | 2 | ||||
-rw-r--r-- | lib/spack/spack/util/environment.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/docs/requirements.txt b/lib/spack/docs/requirements.txt index 5febc679a2..d59a9b6287 100644 --- a/lib/spack/docs/requirements.txt +++ b/lib/spack/docs/requirements.txt @@ -1,4 +1,4 @@ -sphinx==7.2.6 +sphinx==7.4.6 sphinxcontrib-programoutput==0.17 sphinx_design==0.6.0 sphinx-rtd-theme==2.0.0 diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py index 40b2507905..0c5ac769c0 100644 --- a/lib/spack/spack/util/environment.py +++ b/lib/spack/spack/util/environment.py @@ -718,9 +718,9 @@ class EnvironmentModifications: (default: ``&> /dev/null``) concatenate_on_success (str): operator used to execute a command only when the previous command succeeds (default: ``&&``) - exclude ([str or re]): ignore any modifications of these + exclude ([str or re.Pattern[str]]): ignore any modifications of these variables (default: []) - include ([str or re]): always respect modifications of these + include ([str or re.Pattern[str]]): always respect modifications of these variables (default: []). Supersedes any excluded variables. clean (bool): in addition to removing empty entries, also remove duplicate entries (default: False). |