diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index db84a3ddf..1e08072c8 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -13,9 +13,9 @@ babel==2.15.0 beautifulsoup4==4.12.3 black==24.4.2 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -24,20 +24,20 @@ click==8.1.7 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.0 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.21.2 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 @@ -48,14 +48,14 @@ h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -importlib-metadata==7.2.1 +importlib-metadata==8.2.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -64,23 +64,23 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter-cache==1.0.0 jupyter-client==8.6.2 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -94,9 +94,9 @@ mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.11.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 nbclient==0.6.8 nbconvert==7.16.4 @@ -106,7 +106,7 @@ nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.0 +numpy==2.0.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 @@ -114,24 +114,24 @@ parso==0.8.4 particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -140,7 +140,7 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 @@ -152,16 +152,16 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +rpds-py==0.19.1 +ruff==0.5.5 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -173,23 +173,23 @@ sphinx-hep-pdgref==0.2.0 sphinx-pybtex-etal-style==0.0.2 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-applehelp==2.0.0 sphinxcontrib-bibtex==2.6.2 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 +tox==4.16.0 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 @@ -197,7 +197,7 @@ typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.4 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt index e84da6940..b0c02042b 100644 --- a/.constraints/py3.11.txt +++ b/.constraints/py3.11.txt @@ -13,9 +13,9 @@ babel==2.15.0 beautifulsoup4==4.12.3 black==24.4.2 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -24,9 +24,9 @@ click==8.1.7 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.0 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -36,7 +36,7 @@ execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 @@ -47,14 +47,14 @@ h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -importlib-metadata==7.2.1 +importlib-metadata==8.2.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -63,23 +63,23 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter-cache==1.0.0 jupyter-client==8.6.2 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -93,9 +93,9 @@ mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.11.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 nbclient==0.6.8 nbconvert==7.16.4 @@ -105,7 +105,7 @@ nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.0 +numpy==2.0.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 @@ -113,24 +113,24 @@ parso==0.8.4 particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -139,7 +139,7 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 @@ -151,16 +151,16 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +rpds-py==0.19.1 +ruff==0.5.5 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -172,22 +172,22 @@ sphinx-hep-pdgref==0.2.0 sphinx-pybtex-etal-style==0.0.2 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-applehelp==2.0.0 sphinxcontrib-bibtex==2.6.2 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.15.1 +tox==4.16.0 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 @@ -195,7 +195,7 @@ typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.4 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 diff --git a/.constraints/py3.12.txt b/.constraints/py3.12.txt index 7e1ee4831..0a1f6f6e4 100644 --- a/.constraints/py3.12.txt +++ b/.constraints/py3.12.txt @@ -13,9 +13,9 @@ babel==2.15.0 beautifulsoup4==4.12.3 black==24.4.2 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -24,9 +24,9 @@ click==8.1.7 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.0 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 @@ -36,7 +36,7 @@ execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 @@ -47,14 +47,14 @@ h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -importlib-metadata==7.2.1 +importlib-metadata==8.2.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 -ipython==8.25.0 +ipython==8.26.0 ipython-genutils==0.2.0 ipywidgets==8.1.3 isoduration==20.11.0 @@ -63,23 +63,23 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter-cache==1.0.0 jupyter-client==8.6.2 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -93,9 +93,9 @@ mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.11.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 nbclient==0.6.8 nbconvert==7.16.4 @@ -105,7 +105,7 @@ nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.0 +numpy==2.0.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 @@ -113,24 +113,24 @@ parso==0.8.4 particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -139,7 +139,7 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 @@ -151,16 +151,16 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.4.10 -scipy==1.13.1 +rpds-py==0.19.1 +ruff==0.5.5 +scipy==1.14.0 send2trash==1.8.3 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -172,22 +172,22 @@ sphinx-hep-pdgref==0.2.0 sphinx-pybtex-etal-style==0.0.2 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-applehelp==2.0.0 sphinxcontrib-bibtex==2.6.2 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tornado==6.4.1 -tox==4.15.1 +tox==4.16.0 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 @@ -195,7 +195,7 @@ typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.4 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index 1f420d7d2..cb4cc8d8e 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -15,9 +15,9 @@ beautifulsoup4==4.12.3 black==23.3.0 bleach==6.0.0 cached-property==1.5.2 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.1.2 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.15.1 cfgv==3.3.1 chardet==5.2.0 @@ -34,7 +34,7 @@ distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.0.2 fastjsonschema==2.20.0 filelock==3.12.2 @@ -75,7 +75,7 @@ jupyter-server-mathjax==0.2.6 jupyter-server-ydoc==0.8.0 jupyter-ydoc==0.2.5 jupyterlab==3.6.7 -jupyterlab-code-formatter==2.2.1 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.44.0 jupyterlab-lsp==3.10.2 jupyterlab-myst==1.2.0 @@ -185,7 +185,7 @@ sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 -sqlalchemy==1.4.52 +sqlalchemy==1.4.53 sympy==1.10.1 tabulate==0.9.0 terminado==0.17.1 diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 4ade28364..f4f98d1fe 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -14,9 +14,9 @@ backcall==0.2.0 beautifulsoup4==4.12.3 black==24.4.2 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -25,20 +25,20 @@ click==8.1.7 colorama==0.4.6 comm==0.2.2 contourpy==1.1.1 -coverage==7.5.4 +coverage==7.6.0 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.17.1 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 @@ -49,13 +49,13 @@ h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -importlib-metadata==7.2.1 +importlib-metadata==8.2.0 importlib-resources==6.4.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.3 ipython==8.12.3 ipython-genutils==0.2.0 @@ -66,23 +66,23 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter-cache==0.6.1 jupyter-client==8.6.2 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -97,7 +97,7 @@ mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.11.1 mypy-extensions==1.0.0 myst-nb==0.17.2 myst-parser==0.18.1 @@ -118,7 +118,7 @@ particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 pickleshare==0.7.5 -pillow==10.3.0 +pillow==10.4.0 pkgutil-resolve-name==1.3.10 platformdirs==4.2.2 pluggy==1.5.0 @@ -127,7 +127,7 @@ prometheus-client==0.20.0 prompt-toolkit==3.0.47 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 @@ -136,7 +136,7 @@ pydata-sphinx-theme==0.14.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -145,7 +145,7 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pytz==2024.1 @@ -158,8 +158,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.4.10 +rpds-py==0.19.1 +ruff==0.5.5 scipy==1.10.1 send2trash==1.8.3 six==1.16.0 @@ -188,13 +188,13 @@ sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sqlalchemy==2.0.31 stack-data==0.6.3 -sympy==1.12.1 +sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 +tox==4.16.0 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index 380c4d859..5c0c27cd8 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -13,9 +13,9 @@ babel==2.15.0 beautifulsoup4==4.12.3 black==24.4.2 bleach==6.1.0 -cachetools==5.3.3 +cachetools==5.4.0 cattrs==23.2.3 -certifi==2024.6.2 +certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -24,20 +24,20 @@ click==8.1.7 colorama==0.4.6 comm==0.2.2 contourpy==1.2.1 -coverage==7.5.4 +coverage==7.6.0 cycler==0.12.1 -debugpy==1.8.1 +debugpy==1.8.2 decorator==5.1.1 defusedxml==0.7.1 distlib==0.3.8 docstring-to-markdown==0.15 docutils==0.21.2 -exceptiongroup==1.2.1 +exceptiongroup==1.2.2 execnet==2.1.1 executing==2.0.1 fastjsonschema==2.20.0 filelock==3.15.4 -fonttools==4.53.0 +fonttools==4.53.1 fqdn==1.5.1 gitdb==4.0.11 gitpython==3.1.43 @@ -48,13 +48,13 @@ h11==0.14.0 hepunits==2.3.4 httpcore==1.0.5 httpx==0.27.0 -identify==2.5.36 +identify==2.6.0 idna==3.7 imagesize==1.4.1 -importlib-metadata==7.2.1 +importlib-metadata==8.2.0 importlib-resources==6.4.0 iniconfig==2.0.0 -ipykernel==6.29.4 +ipykernel==6.29.5 ipympl==0.9.4 ipython==8.18.1 ipython-genutils==0.2.0 @@ -65,23 +65,23 @@ jedi==0.19.1 jinja2==3.1.4 json5==0.9.25 jsonpointer==3.0.0 -jsonschema==4.22.0 +jsonschema==4.23.0 jsonschema-specifications==2023.12.1 jupyter-cache==1.0.0 jupyter-client==8.6.2 jupyter-core==5.7.2 jupyter-events==0.10.0 jupyter-lsp==2.2.5 -jupyter-server==2.14.1 +jupyter-server==2.14.2 jupyter-server-mathjax==0.2.6 jupyter-server-terminals==0.5.3 -jupyterlab==4.2.2 -jupyterlab-code-formatter==2.2.1 +jupyterlab==4.2.4 +jupyterlab-code-formatter==3.0.0 jupyterlab-git==0.50.1 jupyterlab-lsp==5.1.0 jupyterlab-myst==2.4.2 jupyterlab-pygments==0.3.0 -jupyterlab-server==2.27.2 +jupyterlab-server==2.27.3 jupyterlab-widgets==3.0.11 kiwisolver==1.4.5 latexcodec==3.0.0 @@ -95,9 +95,9 @@ mdurl==0.1.2 mistune==3.0.2 mpl-interactions==0.24.1 mpmath==1.3.0 -mypy==1.10.0 +mypy==1.11.1 mypy-extensions==1.0.0 -myst-nb==1.1.0 +myst-nb==1.1.1 myst-parser==3.0.1 nbclient==0.6.8 nbconvert==7.16.4 @@ -107,7 +107,7 @@ nbmake==1.5.4 nest-asyncio==1.6.0 nodeenv==1.9.1 notebook-shim==0.2.4 -numpy==2.0.0 +numpy==2.0.1 overrides==7.7.0 packaging==24.1 pandocfilters==1.5.1 @@ -115,24 +115,24 @@ parso==0.8.4 particle==0.24.0 pathspec==0.12.1 pexpect==4.9.0 -pillow==10.3.0 +pillow==10.4.0 platformdirs==4.2.2 pluggy==1.5.0 -pre-commit==3.7.1 +pre-commit==3.8.0 prometheus-client==0.20.0 prompt-toolkit==3.0.47 psutil==6.0.0 ptyprocess==0.7.0 -pure-eval==0.2.2 +pure-eval==0.2.3 py-cpuinfo==9.0.0 pybtex==0.24.0 pybtex-docutils==1.0.3 pycparser==2.22 -pydata-sphinx-theme==0.15.3 +pydata-sphinx-theme==0.15.4 pygments==2.18.0 pyparsing==3.1.2 pyproject-api==1.7.1 -pytest==8.2.2 +pytest==8.3.2 pytest-benchmark==4.0.0 pytest-cov==5.0.0 pytest-profiling==1.7.0 @@ -141,7 +141,7 @@ python-constraint2==2.0.0b5 python-dateutil==2.9.0.post0 python-json-logger==2.0.7 python-lsp-jsonrpc==1.1.2 -python-lsp-ruff==2.2.1 +python-lsp-ruff==2.2.2 python-lsp-server==1.11.0 pytoolconfig==1.3.1 pyyaml==6.0.1 @@ -153,8 +153,8 @@ rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.1 rope==1.13.0 -rpds-py==0.18.1 -ruff==0.4.10 +rpds-py==0.19.1 +ruff==0.5.5 scipy==1.13.1 send2trash==1.8.3 six==1.16.0 @@ -162,7 +162,7 @@ smmap==5.0.1 sniffio==1.3.1 snowballstemmer==2.2.0 soupsieve==2.5 -sphinx==7.3.7 +sphinx==7.4.7 sphinx-api-relink==0.0.9 sphinx-autobuild==2024.4.16 sphinx-book-theme==1.1.3 @@ -174,23 +174,23 @@ sphinx-hep-pdgref==0.2.0 sphinx-pybtex-etal-style==0.0.2 sphinx-thebe==0.3.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.8 +sphinxcontrib-applehelp==2.0.0 sphinxcontrib-bibtex==2.6.2 -sphinxcontrib-devhelp==1.0.6 -sphinxcontrib-htmlhelp==2.0.5 +sphinxcontrib-devhelp==2.0.0 +sphinxcontrib-htmlhelp==2.1.0 sphinxcontrib-jsmath==1.0.1 -sphinxcontrib-qthelp==1.0.7 -sphinxcontrib-serializinghtml==1.1.10 +sphinxcontrib-qthelp==2.0.0 +sphinxcontrib-serializinghtml==2.0.0 sqlalchemy==2.0.31 stack-data==0.6.3 -starlette==0.37.2 -sympy==1.12.1 +starlette==0.38.2 +sympy==1.13.1 tabulate==0.9.0 terminado==0.18.1 tinycss2==1.3.0 tomli==2.0.1 tornado==6.4.1 -tox==4.15.1 +tox==4.16.0 tqdm==4.66.4 traitlets==5.14.3 types-python-dateutil==2.9.0.20240316 @@ -198,7 +198,7 @@ typing-extensions==4.12.2 ujson==5.10.0 uri-template==1.3.0 urllib3==2.2.2 -uvicorn==0.30.1 +uvicorn==0.30.4 virtualenv==20.26.3 watchfiles==0.22.0 wcwidth==0.2.13 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b17a91f1b..94fd487ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: metadata.vscode - repo: https://github.com/ComPWA/policy - rev: 0.3.9 + rev: 0.3.11 hooks: - id: check-dev-files args: @@ -59,7 +59,7 @@ repos: - --extras-require=doc,viz - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.5 hooks: - id: ruff args: [--fix] @@ -113,7 +113,7 @@ repos: - --in-place - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.28.5 + rev: 0.29.1 hooks: - id: check-jsonschema name: Check CITATION.cff @@ -126,7 +126,7 @@ repos: pass_filenames: false - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v8.9.0 + rev: v8.13.0 hooks: - id: cspell @@ -152,6 +152,6 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.368 + rev: v1.1.374 hooks: - id: pyright diff --git a/docs/usage.ipynb b/docs/usage.ipynb index 4fe601cc9..f55f5f14c 100644 --- a/docs/usage.ipynb +++ b/docs/usage.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/amplitude.ipynb b/docs/usage/amplitude.ipynb index d022e41a6..4a89e0f1e 100644 --- a/docs/usage/amplitude.ipynb +++ b/docs/usage/amplitude.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/dynamics.ipynb b/docs/usage/dynamics.ipynb index a19e15b87..a9ade0e1e 100644 --- a/docs/usage/dynamics.ipynb +++ b/docs/usage/dynamics.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/dynamics/analytic-continuation.ipynb b/docs/usage/dynamics/analytic-continuation.ipynb index b9ed3a207..5e98a2c34 100644 --- a/docs/usage/dynamics/analytic-continuation.ipynb +++ b/docs/usage/dynamics/analytic-continuation.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/dynamics/custom.ipynb b/docs/usage/dynamics/custom.ipynb index e5cfe7d92..964bc05f1 100644 --- a/docs/usage/dynamics/custom.ipynb +++ b/docs/usage/dynamics/custom.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/dynamics/k-matrix.ipynb b/docs/usage/dynamics/k-matrix.ipynb index b401194e2..cf97b8745 100644 --- a/docs/usage/dynamics/k-matrix.ipynb +++ b/docs/usage/dynamics/k-matrix.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/helicity/formalism.ipynb b/docs/usage/helicity/formalism.ipynb index 2e345a9f3..09055bcc8 100644 --- a/docs/usage/helicity/formalism.ipynb +++ b/docs/usage/helicity/formalism.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/helicity/spin-alignment.ipynb b/docs/usage/helicity/spin-alignment.ipynb index 5f38d1519..4cd4a233f 100644 --- a/docs/usage/helicity/spin-alignment.ipynb +++ b/docs/usage/helicity/spin-alignment.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/interactive.ipynb b/docs/usage/interactive.ipynb index 4423773fb..6c76ddf4e 100644 --- a/docs/usage/interactive.ipynb +++ b/docs/usage/interactive.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/kinematics.ipynb b/docs/usage/kinematics.ipynb index 77a7774cc..fd34e1c12 100644 --- a/docs/usage/kinematics.ipynb +++ b/docs/usage/kinematics.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/modify.ipynb b/docs/usage/modify.ipynb index ad18b2724..3bc546c8f 100644 --- a/docs/usage/modify.ipynb +++ b/docs/usage/modify.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/symplot.ipynb b/docs/usage/symplot.ipynb index f259b0b21..bed399591 100644 --- a/docs/usage/symplot.ipynb +++ b/docs/usage/symplot.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/docs/usage/sympy.ipynb b/docs/usage/sympy.ipynb index 88224d310..d1af9da1a 100644 --- a/docs/usage/sympy.ipynb +++ b/docs/usage/sympy.ipynb @@ -10,9 +10,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell", "skip-execution" @@ -34,9 +31,6 @@ "jupyter": { "source_hidden": true }, - "slideshow": { - "slide_type": "skip" - }, "tags": [ "remove-cell" ] diff --git a/pyproject.toml b/pyproject.toml index ab262546d..abecae0eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,6 @@ dev = [ doc = [ "Sphinx >=3", "ampform[all]", - "black", "ipympl", "matplotlib <3.9.0", # https://github.com/ComPWA/ampform/issues/279 "matplotlib", @@ -88,10 +87,8 @@ doc = [ "sphinxcontrib-bibtex >=2", ] jupyter = [ - "black", - "isort", "jupyterlab", - "jupyterlab-code-formatter", + "jupyterlab-code-formatter >=3.0.0", "jupyterlab-git", "jupyterlab-lsp", "jupyterlab-myst", @@ -160,6 +157,10 @@ exclude = "_build" show_error_codes = true warn_unused_configs = true +[[tool.mypy.overrides]] +ignore_missing_imports = true +module = ["sympy.*"] + [[tool.mypy.overrides]] ignore_missing_imports = true module = ["graphviz.*"] diff --git a/src/ampform/dynamics/__init__.py b/src/ampform/dynamics/__init__.py index 20d044774..cb0260e88 100644 --- a/src/ampform/dynamics/__init__.py +++ b/src/ampform/dynamics/__init__.py @@ -54,7 +54,7 @@ class EnergyDependentWidth(sp.Expr): m_b: Any angular_momentum: Any meson_radius: Any - phsp_factor: PhaseSpaceFactorProtocol = argument( + phsp_factor: PhaseSpaceFactorProtocol = argument( # type:ignore[assignment] default=PhaseSpaceFactor, sympify=False ) name: str | None = argument(default=None, sympify=False) @@ -92,7 +92,7 @@ def relativistic_breit_wigner_with_ff( # noqa: PLR0917 m_b, angular_momentum, meson_radius, - phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, + phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, # type:ignore[assignment] ) -> sp.Expr: """Relativistic Breit-Wigner with `.FormFactor`. diff --git a/src/ampform/dynamics/builder.py b/src/ampform/dynamics/builder.py index 7e717e661..2a5904c53 100644 --- a/src/ampform/dynamics/builder.py +++ b/src/ampform/dynamics/builder.py @@ -123,7 +123,7 @@ def __init__( phsp_factor: PhaseSpaceFactorProtocol | None = None, ) -> None: if phsp_factor is None: - phsp_factor = PhaseSpaceFactor + phsp_factor = PhaseSpaceFactor # type:ignore[arg-type,assignment] self.phsp_factor = phsp_factor self.energy_dependent_width = energy_dependent_width self.form_factor = form_factor @@ -189,7 +189,7 @@ def __energy_dependent_breit_wigner( m_b=m_b, angular_momentum=angular_momentum, meson_radius=meson_radius, - phsp_factor=self.phsp_factor, + phsp_factor=self.phsp_factor, # type:ignore[arg-type] ) breit_wigner_expr = (res_mass * res_width) / ( res_mass**2 - s - mass_dependent_width * res_mass * sp.I @@ -245,7 +245,7 @@ def __create_symbols( create_relativistic_breit_wigner_with_ff = RelativisticBreitWignerBuilder( energy_dependent_width=True, form_factor=True, - phsp_factor=PhaseSpaceFactor, + phsp_factor=PhaseSpaceFactor, # type:ignore[arg-type] ).__call__ """Create a `.relativistic_breit_wigner_with_ff` for a two-body decay. @@ -256,7 +256,7 @@ def __create_symbols( create_analytic_breit_wigner = RelativisticBreitWignerBuilder( energy_dependent_width=True, form_factor=True, - phsp_factor=EqualMassPhaseSpaceFactor, + phsp_factor=EqualMassPhaseSpaceFactor, # type:ignore[arg-type] ).__call__ """Create a `.relativistic_breit_wigner_with_ff` with analytic continuation. diff --git a/src/ampform/dynamics/kmatrix.py b/src/ampform/dynamics/kmatrix.py index da2e3bf63..47bf7dd29 100644 --- a/src/ampform/dynamics/kmatrix.py +++ b/src/ampform/dynamics/kmatrix.py @@ -56,7 +56,7 @@ def formulate( # type: ignore[override] # noqa: D417 n_poles, parametrize: bool = True, return_t_hat: bool = False, - phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, + phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, # type:ignore[assignment] angular_momentum=0, meson_radius=1, ) -> sp.MutableDenseMatrix: @@ -116,7 +116,7 @@ def parametrization( # noqa: PLR0917 pole_id, angular_momentum=0, meson_radius=1, - phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, + phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, # type:ignore[assignment] ) -> sp.Expr: def residue_function(pole_id, i) -> sp.Expr: return residue_constant[pole_id, i] * sp.sqrt( @@ -296,7 +296,7 @@ def formulate( # type: ignore[override] # noqa: D417 n_poles, parametrize: bool = True, return_f_hat: bool = False, - phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, + phsp_factor: PhaseSpaceFactorProtocol = PhaseSpaceFactor, # type:ignore[assignment] angular_momentum=0, meson_radius=1, ) -> sp.MutableDenseMatrix: diff --git a/src/ampform/kinematics/lorentz.py b/src/ampform/kinematics/lorentz.py index 6d4a14deb..1ecfa801f 100644 --- a/src/ampform/kinematics/lorentz.py +++ b/src/ampform/kinematics/lorentz.py @@ -2,7 +2,8 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any, Callable, Dict +import sys +from typing import TYPE_CHECKING, Any, Callable, Dict, TypeAlias import sympy as sp @@ -17,6 +18,10 @@ ) from ampform.sympy.math import ComplexSqrt +if sys.version_info < (3, 10): + from typing_extensions import TypeAlias +else: + from typing import TypeAlias if TYPE_CHECKING: from qrules.topology import Topology from sympy.printing.latex import LatexPrinter @@ -45,7 +50,7 @@ def create_four_momentum_symbol(index: int) -> FourMomentumSymbol: It's best to create a `dict` of `.FourMomenta` with :func:`create_four_momentum_symbols`. """ -FourMomentumSymbol = ArraySymbol +FourMomentumSymbol: TypeAlias = ArraySymbol r"""Array-`~sympy.core.symbol.Symbol` that represents an array of four-momenta. The array is assumed to be of shape :math:`n\times 4` with :math:`n` the number of diff --git a/src/ampform/sympy/__init__.py b/src/ampform/sympy/__init__.py index c21bedb10..150e7864b 100644 --- a/src/ampform/sympy/__init__.py +++ b/src/ampform/sympy/__init__.py @@ -164,7 +164,7 @@ def free_symbols(self) -> set[sp.Basic]: return super().free_symbols - {s for s, _ in self.indices} @override - def doit(self, deep: bool = True) -> sp.Expr: # type: ignore[override] + def doit(self, deep: bool = True) -> sp.Expr: # type: ignore[misc] expr = self.evaluate() if deep: return expr.doit() diff --git a/src/ampform/sympy/_decorator.py b/src/ampform/sympy/_decorator.py index c7c417d6e..ebd5a27a4 100644 --- a/src/ampform/sympy/_decorator.py +++ b/src/ampform/sympy/_decorator.py @@ -274,7 +274,7 @@ def new_method(cls, *args, evaluate: bool = False, **kwargs) -> type[ExprClass]: return expr.evaluate() return expr - cls.__new__ = new_method # type: ignore[method-assign] + cls.__new__ = new_method # type: ignore[assignment] cls.__getnewargs__ = _get_arguments # type: ignore[assignment,method-assign] cls._hashable_content = _hashable_content_method # type: ignore[method-assign] if non_sympy_fields: diff --git a/src/ampform/sympy/deprecated.py b/src/ampform/sympy/deprecated.py index 34211e113..135caaf34 100644 --- a/src/ampform/sympy/deprecated.py +++ b/src/ampform/sympy/deprecated.py @@ -108,7 +108,7 @@ def __getnewargs_ex__(self) -> tuple[tuple, dict]: kwargs = {"name": self._name} return args, kwargs - @override + @override # type:ignore[misc] def _hashable_content(self) -> tuple: # https://github.com/sympy/sympy/blob/1.10/sympy/core/basic.py#L157-L165 # name is converted to string because unstable hash for None diff --git a/src/ampform/sympy/math.py b/src/ampform/sympy/math.py index eac223aa3..04c40dcd5 100644 --- a/src/ampform/sympy/math.py +++ b/src/ampform/sympy/math.py @@ -37,7 +37,7 @@ class ComplexSqrt(NumPyPrintable): @overload def __new__(cls, x: sp.Number, *args, **kwargs) -> sp.Expr: ... # type: ignore[misc] @overload - def __new__(cls, x: sp.Expr, *args, **kwargs) -> ComplexSqrt: ... + def __new__(cls, x: sp.Expr, *args, **kwargs) -> ComplexSqrt: ... # type:ignore[misc] @override def __new__(cls, x, *args, **kwargs): x = sp.sympify(x) diff --git a/tests/dynamics/test_deprecated.py b/tests/dynamics/test_deprecated.py index 0315b30f6..3bc2c364c 100644 --- a/tests/dynamics/test_deprecated.py +++ b/tests/dynamics/test_deprecated.py @@ -38,7 +38,7 @@ def test_pickle(): m_b=m_a, angular_momentum=0, meson_radius=1, - phsp_factor=EqualMassPhaseSpaceFactor, + phsp_factor=EqualMassPhaseSpaceFactor, # type:ignore[arg-type] name="Gamma_1", ) pickled_obj = pickle.dumps(expr) diff --git a/tests/dynamics/test_dynamics.py b/tests/dynamics/test_dynamics.py index 6b8d83201..06042f4dd 100644 --- a/tests/dynamics/test_dynamics.py +++ b/tests/dynamics/test_dynamics.py @@ -47,7 +47,7 @@ def test_init(): m_b=m_b, angular_momentum=angular_momentum, meson_radius=d, - phsp_factor=EqualMassPhaseSpaceFactor, + phsp_factor=EqualMassPhaseSpaceFactor, # type:ignore[arg-type] name="Gamma_1", ) assert width.phsp_factor is EqualMassPhaseSpaceFactor @@ -70,7 +70,7 @@ def test_doit_and_subs(self, method: str): m_b=m_a, angular_momentum=0, meson_radius=1, - phsp_factor=PhaseSpaceFactorSWave, + phsp_factor=PhaseSpaceFactorSWave, # type:ignore[arg-type] ) subs_first = round_nested(_subs(width, parameters, method).doit(), n_decimals=3) doit_first = round_nested(_subs(width.doit(), parameters, method), n_decimals=3)