diff --git a/.constraints/py3.10.txt b/.constraints/py3.10.txt index b9f78689..3acdb108 100644 --- a/.constraints/py3.10.txt +++ b/.constraints/py3.10.txt @@ -4,45 +4,44 @@ # # pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.10.txt --strip-extras setup.py # -alabaster==0.7.12 +alabaster==0.7.13 anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.13 +astroid==2.13.3 asttokens==2.2.1 -attrs==22.1.0 +attrs==22.2.0 babel==2.11.0 backcall==0.2.0 beautifulsoup4==4.11.1 black==22.12.0 -bleach==5.0.1 -cachetools==5.2.0 +bleach==6.0.0 +cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 cfgv==3.3.1 chardet==5.1.0 -charset-normalizer==2.1.1 +charset-normalizer==3.0.1 click==8.1.3 colorama==0.4.6 comm==0.1.2 -coverage==6.5.0 -debugpy==1.6.4 +coverage==7.1.0 +debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 docutils==0.17.1 -entrypoints==0.4 -exceptiongroup==1.0.4 +exceptiongroup==1.1.0 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 -filelock==3.8.2 +filelock==3.9.0 flake8==6.0.0 flake8-blind-except==0.2.1 -flake8-bugbear==22.12.6 -flake8-builtins==2.0.1 +flake8-bugbear==23.1.20 +flake8-builtins==2.1.0 flake8-comprehensions==3.10.1 flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 @@ -52,36 +51,36 @@ flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.1 -hepunits==2.3.0 -identify==2.5.9 +greenlet==2.0.2 +hepunits==2.3.1 +identify==2.5.15 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.1.0 -iniconfig==1.1.1 -ipykernel==6.19.2 -ipython==8.6.0 +importlib-metadata==6.0.0 +iniconfig==2.0.0 +ipykernel==6.20.2 +ipython==8.9.0 ipython-genutils==0.2.0 -isort==5.10.1 +isort==5.12.0 jedi==0.18.2 jinja2==3.1.2 -json5==0.9.10 +json5==0.9.11 jsonschema==4.17.3 jupyter-cache==0.5.0 -jupyter-client==7.4.8 -jupyter-core==5.1.0 -jupyter-server==1.23.3 -jupyterlab==3.5.1 +jupyter-client==8.0.1 +jupyter-core==5.1.5 +jupyter-server==1.23.5 +jupyterlab==3.5.3 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.5 +jupyterlab-server==2.19.0 latexcodec==2.0.1 -lazy-object-proxy==1.8.0 +lazy-object-proxy==1.9.0 livereload==2.6.3 markdown-it-py==2.1.0 -markupsafe==2.1.1 +markupsafe==2.1.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.3 @@ -91,27 +90,27 @@ mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.8 +nbclassic==0.5.1 nbclient==0.5.13 -nbconvert==7.2.6 -nbformat==5.7.0 +nbconvert==7.2.9 +nbformat==5.7.3 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 notebook-shim==0.2.2 -packaging==22.0 +packaging==23.0 pandocfilters==1.5.0 parso==0.8.3 -particle==0.21.0 -pathspec==0.10.2 -pep8-naming==0.13.2 +particle==0.21.1 +pathspec==0.11.0 +pep8-naming==0.13.3 pexpect==4.8.0 pickleshare==0.7.5 -platformdirs==2.6.0 +platformdirs==2.6.2 pluggy==1.0.0 -pre-commit==2.20.0 -prometheus-client==0.15.0 +pre-commit==3.0.1 +prometheus-client==0.16.0 prompt-toolkit==3.0.36 psutil==5.9.4 ptyprocess==0.7.0 @@ -120,26 +119,26 @@ pybtex==0.24.0 pybtex-docutils==1.0.2 pycodestyle==2.10.0 pycparser==2.21 -pydantic==1.10.2 +pydantic==1.10.4 pydata-sphinx-theme==0.8.1 -pydocstyle==6.1.1 +pydocstyle==6.3.0 pydot==1.4.2 pyflakes==3.0.1 -pygments==2.13.0 -pylint==2.15.8 +pygments==2.14.0 +pylint==2.15.10 pyparsing==3.0.9 -pyproject-api==1.2.1 -pyrsistent==0.19.2 -pytest==7.2.0 +pyproject-api==1.5.0 +pyrsistent==0.19.3 +pytest==7.2.1 pytest-cov==4.0.0 pytest-profiling==1.7.0 pytest-xdist==3.1.0 python-constraint==1.4.0 python-dateutil==2.8.2 -pytz==2022.6 +pytz==2022.7.1 pyyaml==6.0 -pyzmq==24.0.1 -requests==2.28.1 +pyzmq==25.0.0 +requests==2.28.2 restructuredtext-lint==1.4.0 send2trash==1.8.0 six==1.16.0 @@ -149,13 +148,13 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.1 +sphinx-codeautolink==0.14.0 sphinx-comments==0.0.3 sphinx-copybutton==0.5.1 sphinx-design==0.3.0 -sphinx-thebe==0.1.2 +sphinx-thebe==0.2.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.2 +sphinxcontrib-applehelp==1.0.4 sphinxcontrib-bibtex==2.5.0 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-hep-pdgref==0.1.4 @@ -164,33 +163,32 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1 -sqlalchemy==1.4.44 +sqlalchemy==1.4.46 stack-data==0.6.2 tabulate==0.9.0 terminado==0.17.1 tinycss2==1.2.1 -toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==4.0.3 +tox==4.4.2 tqdm==4.64.1 -traitlets==5.7.0 -types-docutils==0.19.1.1 +traitlets==5.8.1 +types-docutils==0.19.1.2 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.2 -types-requests==2.28.11.5 -types-setuptools==65.6.0.2 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 types-urllib3==1.26.25.4 typing-extensions==4.4.0 -urllib3==1.26.13 +urllib3==1.26.14 virtualenv==20.17.1 -wcwidth==0.2.5 +wcwidth==0.2.6 webencodings==0.5.1 -websocket-client==1.4.2 +websocket-client==1.5.0 wheel==0.38.4 wrapt==1.14.1 -zipp==3.11.0 +zipp==3.12.0 # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/.constraints/py3.11.txt b/.constraints/py3.11.txt new file mode 100644 index 00000000..4453a660 --- /dev/null +++ b/.constraints/py3.11.txt @@ -0,0 +1,193 @@ +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.11.txt --strip-extras setup.py +# +alabaster==0.7.13 +anyio==3.6.2 +aquirdturtle-collapsible-headings==3.1.0 +argon2-cffi==21.3.0 +argon2-cffi-bindings==21.2.0 +astroid==2.13.3 +asttokens==2.2.1 +attrs==22.2.0 +babel==2.11.0 +backcall==0.2.0 +beautifulsoup4==4.11.1 +black==22.12.0 +bleach==6.0.0 +cachetools==5.3.0 +certifi==2022.12.7 +cffi==1.15.1 +cfgv==3.3.1 +chardet==5.1.0 +charset-normalizer==3.0.1 +click==8.1.3 +colorama==0.4.6 +comm==0.1.2 +coverage==7.1.0 +debugpy==1.6.6 +decorator==5.1.1 +defusedxml==0.7.1 +dill==0.3.6 +distlib==0.3.6 +docutils==0.17.1 +execnet==1.9.0 +executing==1.2.0 +fastjsonschema==2.16.2 +filelock==3.9.0 +flake8==6.0.0 +flake8-blind-except==0.2.1 +flake8-bugbear==23.1.20 +flake8-builtins==2.1.0 +flake8-comprehensions==3.10.1 +flake8-future-import==0.4.7 +flake8-plugin-utils==1.3.2 +flake8-pytest-style==1.6.0 +flake8-rst-docstrings==0.3.0 +flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" +flake8-use-fstring==1.4 +gprof2dot==2022.7.29 +graphviz==0.20.1 +greenlet==2.0.2 +hepunits==2.3.1 +identify==2.5.15 +idna==3.4 +imagesize==1.4.1 +importlib-metadata==6.0.0 +iniconfig==2.0.0 +ipykernel==6.20.2 +ipython==8.9.0 +ipython-genutils==0.2.0 +isort==5.12.0 +jedi==0.18.2 +jinja2==3.1.2 +json5==0.9.11 +jsonschema==4.17.3 +jupyter-cache==0.5.0 +jupyter-client==8.0.1 +jupyter-core==5.1.5 +jupyter-server==1.23.5 +jupyterlab==3.5.3 +jupyterlab-code-formatter==1.5.3 +jupyterlab-markup==1.1.0 +jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" +jupyterlab-pygments==0.2.2 +jupyterlab-server==2.19.0 +latexcodec==2.0.1 +lazy-object-proxy==1.9.0 +livereload==2.6.3 +markdown-it-py==2.1.0 +markupsafe==2.1.2 +matplotlib-inline==0.1.6 +mccabe==0.7.0 +mdit-py-plugins==0.3.3 +mdurl==0.1.2 +mistune==2.0.4 +mypy==0.991 +mypy-extensions==0.4.3 +myst-nb==0.17.1 ; python_version >= "3.8.0" +myst-parser==0.18.1 +nbclassic==0.5.1 +nbclient==0.5.13 +nbconvert==7.2.9 +nbformat==5.7.3 +nbmake==1.3.0 +nest-asyncio==1.5.6 +nodeenv==1.7.0 +notebook==6.5.2 +notebook-shim==0.2.2 +packaging==23.0 +pandocfilters==1.5.0 +parso==0.8.3 +particle==0.21.1 +pathspec==0.11.0 +pep8-naming==0.13.3 +pexpect==4.8.0 +pickleshare==0.7.5 +platformdirs==2.6.2 +pluggy==1.0.0 +pre-commit==3.0.1 +prometheus-client==0.16.0 +prompt-toolkit==3.0.36 +psutil==5.9.4 +ptyprocess==0.7.0 +pure-eval==0.2.2 +pybtex==0.24.0 +pybtex-docutils==1.0.2 +pycodestyle==2.10.0 +pycparser==2.21 +pydantic==1.10.4 +pydata-sphinx-theme==0.8.1 +pydocstyle==6.3.0 +pydot==1.4.2 +pyflakes==3.0.1 +pygments==2.14.0 +pylint==2.15.10 +pyparsing==3.0.9 +pyproject-api==1.5.0 +pyrsistent==0.19.3 +pytest==7.2.1 +pytest-cov==4.0.0 +pytest-profiling==1.7.0 +pytest-xdist==3.1.0 +python-constraint==1.4.0 +python-dateutil==2.8.2 +pytz==2022.7.1 +pyyaml==6.0 +pyzmq==25.0.0 +requests==2.28.2 +restructuredtext-lint==1.4.0 +send2trash==1.8.0 +six==1.16.0 +sniffio==1.3.0 +snowballstemmer==2.2.0 +soupsieve==2.3.2.post1 +sphinx==4.5.0 +sphinx-autobuild==2021.3.14 +sphinx-book-theme==0.3.3 +sphinx-codeautolink==0.14.0 +sphinx-comments==0.0.3 +sphinx-copybutton==0.5.1 +sphinx-design==0.3.0 +sphinx-thebe==0.2.1 +sphinx-togglebutton==0.3.2 +sphinxcontrib-applehelp==1.0.4 +sphinxcontrib-bibtex==2.5.0 +sphinxcontrib-devhelp==1.0.2 +sphinxcontrib-hep-pdgref==0.1.4 +sphinxcontrib-htmlhelp==2.0.0 +sphinxcontrib-jsmath==1.0.1 +sphinxcontrib-qthelp==1.0.3 +sphinxcontrib-serializinghtml==1.1.5 +sphobjinv==2.3.1 +sqlalchemy==1.4.46 +stack-data==0.6.2 +tabulate==0.9.0 +terminado==0.17.1 +tinycss2==1.2.1 +tomli==2.0.1 +tomlkit==0.11.6 +tornado==6.2 +tox==4.4.2 +tqdm==4.64.1 +traitlets==5.8.1 +types-docutils==0.19.1.2 +types-pkg-resources==0.1.3 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 +types-urllib3==1.26.25.4 +typing-extensions==4.4.0 +urllib3==1.26.14 +virtualenv==20.17.1 +wcwidth==0.2.6 +webencodings==0.5.1 +websocket-client==1.5.0 +wheel==0.38.4 +wrapt==1.14.1 +zipp==3.12.0 + +# The following packages are considered to be unsafe in a requirements file: +# setuptools diff --git a/.constraints/py3.6.txt b/.constraints/py3.6.txt index 977cdb39..0262b4dc 100644 --- a/.constraints/py3.6.txt +++ b/.constraints/py3.6.txt @@ -4,7 +4,7 @@ # # pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.6.txt --strip-extras setup.py # -alabaster==0.7.12 +alabaster==0.7.13 anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 @@ -48,7 +48,7 @@ gitdb==4.0.9 gitpython==3.1.18 gprof2dot==2022.7.29 graphviz==0.19.1 -greenlet==2.0.1 +greenlet==2.0.2 hepunits==2.2.1 identify==2.4.4 idna==3.4 @@ -64,7 +64,7 @@ ipywidgets==7.7.2 isort==5.10.1 jedi==0.17.2 jinja2==3.0.3 -json5==0.9.10 +json5==0.9.11 jsonschema==3.2.0 jupyter-cache==0.4.3 jupyter-client==7.1.2 @@ -109,7 +109,7 @@ pickleshare==0.7.5 platformdirs==2.4.0 pluggy==1.0.0 pre-commit==2.17.0 -prometheus-client==0.15.0 +prometheus-client==0.16.0 prompt-toolkit==3.0.36 ptyprocess==0.7.0 py==1.11.0 @@ -119,10 +119,10 @@ pycodestyle==2.8.0 pycparser==2.21 pydantic==1.9.2 pydata-sphinx-theme==0.7.2 -pydocstyle==6.1.1 +pydocstyle==6.3.0 pydot==1.4.2 pyflakes==2.4.0 -pygments==2.13.0 +pygments==2.14.0 pylint==2.13.9 pyparsing==3.0.9 pyrsistent==0.18.0 @@ -132,9 +132,9 @@ pytest-profiling==1.7.0 pytest-xdist==3.0.2 python-constraint==1.4.0 python-dateutil==2.8.2 -pytz==2022.6 +pytz==2022.7.1 pyyaml==6.0 -pyzmq==24.0.1 +pyzmq==25.0.0 requests==2.27.1 restructuredtext-lint==1.4.0 send2trash==1.8.0 @@ -150,7 +150,7 @@ sphinx-codeautolink==0.12.1 sphinx-comments==0.0.3 sphinx-copybutton==0.5.0 sphinx-design==0.0.13 -sphinx-thebe==0.1.2 +sphinx-thebe==0.2.1 sphinx-togglebutton==0.3.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-bibtex==2.5.0 @@ -161,26 +161,26 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1 -sqlalchemy==1.4.44 +sqlalchemy==1.4.46 terminado==0.12.1 testpath==0.6.0 toml==0.10.2 tomli==1.2.3 tornado==6.1 -tox==3.27.1 ; python_version < "3.8.0" +tox==3.28.0 ; python_version < "3.8.0" tqdm==4.64.1 traitlets==4.3.3 typed-ast==1.5.4 -types-docutils==0.19.1.1 +types-docutils==0.19.1.2 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.2 -types-requests==2.28.11.5 -types-setuptools==65.6.0.2 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 types-urllib3==1.26.25.4 typing-extensions==4.1.1 ; python_version < "3.10.0" -urllib3==1.26.13 +urllib3==1.26.14 virtualenv==20.15.1 ; python_version < "3.8.0" -wcwidth==0.2.5 +wcwidth==0.2.6 webencodings==0.5.1 websocket-client==1.3.1 wheel==0.37.1 diff --git a/.constraints/py3.7.txt b/.constraints/py3.7.txt index a8c74ce3..fd2fdb18 100644 --- a/.constraints/py3.7.txt +++ b/.constraints/py3.7.txt @@ -4,40 +4,40 @@ # # pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.7.txt --strip-extras setup.py # -alabaster==0.7.12 +alabaster==0.7.13 anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.13 +astroid==2.13.3 attrs==21.4.0 babel==2.11.0 backcall==0.2.0 beautifulsoup4==4.11.1 black==22.12.0 -bleach==5.0.1 +bleach==6.0.0 certifi==2022.12.7 cffi==1.15.1 cfgv==3.3.1 -charset-normalizer==2.1.1 +charset-normalizer==3.0.1 click==8.1.3 colorama==0.4.6 -coverage==6.5.0 -debugpy==1.6.4 +coverage==7.1.0 +debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 docutils==0.17.1 entrypoints==0.4 -exceptiongroup==1.0.4 +exceptiongroup==1.1.0 execnet==1.9.0 fastjsonschema==2.16.2 -filelock==3.8.2 +filelock==3.9.0 flake8==5.0.4 flake8-blind-except==0.2.1 -flake8-bugbear==22.12.6 -flake8-builtins==2.0.1 +flake8-bugbear==23.1.20 +flake8-builtins==2.1.0 flake8-comprehensions==3.10.1 flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 @@ -45,33 +45,33 @@ flake8-pytest-style==1.6.0 flake8-rst-docstrings==0.3.0 flake8-use-fstring==1.4 gitdb==4.0.10 -gitpython==3.1.29 +gitpython==3.1.30 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.1 -hepunits==2.3.0 -identify==2.5.9 +greenlet==2.0.2 +hepunits==2.3.1 +identify==2.5.15 idna==3.4 imagesize==1.4.1 importlib-metadata==4.2.0 ; python_version < "3.8.0" -importlib-resources==5.10.1 -iniconfig==1.1.1 +importlib-resources==5.10.2 +iniconfig==2.0.0 ipykernel==6.16.2 ipython==7.34.0 ipython-genutils==0.2.0 ipywidgets==7.7.2 -isort==5.10.1 +isort==5.11.4 jedi==0.18.2 jinja2==3.1.2 -json5==0.9.10 +json5==0.9.11 jsonschema==4.17.3 jupyter-cache==0.4.3 -jupyter-client==7.4.8 +jupyter-client==7.4.9 jupyter-core==4.12.0 -jupyter-server==1.23.3 +jupyter-server==1.23.5 jupyter-server-mathjax==0.2.6 jupyter-sphinx==0.3.2 -jupyterlab==3.5.1 +jupyterlab==3.5.3 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" @@ -79,11 +79,11 @@ jupyterlab-pygments==0.2.2 jupyterlab-server==2.15.2 ; python_version < "3.8.0" jupyterlab-widgets==1.1.1 latexcodec==2.0.1 -lazy-object-proxy==1.8.0 +lazy-object-proxy==1.9.0 livereload==2.6.3 -lxml==4.9.1 +lxml==4.9.2 markdown-it-py==1.1.0 -markupsafe==2.1.1 +markupsafe==2.1.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.2.8 @@ -92,29 +92,29 @@ mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.13.2 ; python_version < "3.8.0" myst-parser==0.15.2 -nbclassic==0.4.8 +nbclassic==0.5.1 nbclient==0.5.13 nbconvert==6.5.4 nbdime==3.1.1 -nbformat==5.7.0 +nbformat==5.7.3 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 notebook-shim==0.2.2 -packaging==22.0 +packaging==23.0 pandocfilters==1.5.0 parso==0.8.3 -particle==0.21.0 -pathspec==0.10.2 -pep8-naming==0.13.2 +particle==0.21.1 +pathspec==0.11.0 +pep8-naming==0.13.3 pexpect==4.8.0 pickleshare==0.7.5 pkgutil-resolve-name==1.3.10 -platformdirs==2.6.0 +platformdirs==2.6.2 pluggy==1.0.0 -pre-commit==2.20.0 -prometheus-client==0.15.0 +pre-commit==2.21.0 +prometheus-client==0.16.0 prompt-toolkit==3.0.36 psutil==5.9.4 ptyprocess==0.7.0 @@ -123,25 +123,25 @@ pybtex==0.24.0 pybtex-docutils==1.0.2 pycodestyle==2.9.1 pycparser==2.21 -pydantic==1.10.2 +pydantic==1.10.4 pydata-sphinx-theme==0.8.1 -pydocstyle==6.1.1 +pydocstyle==6.3.0 pydot==1.4.2 pyflakes==2.5.0 -pygments==2.13.0 -pylint==2.15.8 +pygments==2.14.0 +pylint==2.15.10 pyparsing==3.0.9 -pyrsistent==0.19.2 -pytest==7.2.0 +pyrsistent==0.19.3 +pytest==7.2.1 pytest-cov==4.0.0 pytest-profiling==1.7.0 pytest-xdist==3.1.0 python-constraint==1.4.0 python-dateutil==2.8.2 -pytz==2022.6 +pytz==2022.7.1 pyyaml==6.0 -pyzmq==24.0.1 -requests==2.28.1 +pyzmq==25.0.0 +requests==2.28.2 restructuredtext-lint==1.4.0 send2trash==1.8.0 six==1.16.0 @@ -152,11 +152,11 @@ soupsieve==2.3.2.post1 sphinx==4.3.2 ; python_version < "3.8.0" sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.1 +sphinx-codeautolink==0.14.0 sphinx-comments==0.0.3 sphinx-copybutton==0.5.1 sphinx-design==0.3.0 -sphinx-thebe==0.1.2 +sphinx-thebe==0.2.1 sphinx-togglebutton==0.3.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-bibtex==2.5.0 @@ -167,33 +167,32 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1 -sqlalchemy==1.4.44 +sqlalchemy==1.4.46 terminado==0.17.1 tinycss2==1.2.1 -toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==3.27.1 ; python_version < "3.8.0" +tox==3.28.0 ; python_version < "3.8.0" tqdm==4.64.1 -traitlets==5.7.0 +traitlets==5.8.1 typed-ast==1.5.4 -types-docutils==0.19.1.1 +types-docutils==0.19.1.2 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.2 -types-requests==2.28.11.5 -types-setuptools==65.6.0.2 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.13 +urllib3==1.26.14 virtualenv==20.15.1 ; python_version < "3.8.0" -wcwidth==0.2.5 +wcwidth==0.2.6 webencodings==0.5.1 -websocket-client==1.4.2 +websocket-client==1.5.0 wheel==0.38.4 widgetsnbextension==3.6.1 wrapt==1.14.1 -zipp==3.11.0 +zipp==3.12.0 # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/.constraints/py3.8.txt b/.constraints/py3.8.txt index 0691d741..38b451bd 100644 --- a/.constraints/py3.8.txt +++ b/.constraints/py3.8.txt @@ -4,45 +4,44 @@ # # pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.8.txt --strip-extras setup.py # -alabaster==0.7.12 +alabaster==0.7.13 anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.13 +astroid==2.13.3 asttokens==2.2.1 -attrs==22.1.0 +attrs==22.2.0 babel==2.11.0 backcall==0.2.0 beautifulsoup4==4.11.1 black==22.12.0 -bleach==5.0.1 -cachetools==5.2.0 +bleach==6.0.0 +cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 cfgv==3.3.1 chardet==5.1.0 -charset-normalizer==2.1.1 +charset-normalizer==3.0.1 click==8.1.3 colorama==0.4.6 comm==0.1.2 -coverage==6.5.0 -debugpy==1.6.4 +coverage==7.1.0 +debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 docutils==0.17.1 -entrypoints==0.4 -exceptiongroup==1.0.4 +exceptiongroup==1.1.0 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 -filelock==3.8.2 +filelock==3.9.0 flake8==6.0.0 flake8-blind-except==0.2.1 -flake8-bugbear==22.12.6 -flake8-builtins==2.0.1 +flake8-bugbear==23.1.20 +flake8-builtins==2.1.0 flake8-comprehensions==3.10.1 flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 @@ -52,37 +51,37 @@ flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.1 -hepunits==2.3.0 -identify==2.5.9 +greenlet==2.0.2 +hepunits==2.3.1 +identify==2.5.15 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.1.0 -importlib-resources==5.10.1 -iniconfig==1.1.1 -ipykernel==6.19.2 -ipython==8.6.0 +importlib-metadata==6.0.0 +importlib-resources==5.10.2 +iniconfig==2.0.0 +ipykernel==6.20.2 +ipython==8.9.0 ipython-genutils==0.2.0 -isort==5.10.1 +isort==5.12.0 jedi==0.18.2 jinja2==3.1.2 -json5==0.9.10 +json5==0.9.11 jsonschema==4.17.3 jupyter-cache==0.5.0 -jupyter-client==7.4.8 -jupyter-core==5.1.0 -jupyter-server==1.23.3 -jupyterlab==3.5.1 +jupyter-client==8.0.1 +jupyter-core==5.1.5 +jupyter-server==1.23.5 +jupyterlab==3.5.3 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.5 +jupyterlab-server==2.19.0 latexcodec==2.0.1 -lazy-object-proxy==1.8.0 +lazy-object-proxy==1.9.0 livereload==2.6.3 markdown-it-py==2.1.0 -markupsafe==2.1.1 +markupsafe==2.1.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.3 @@ -92,28 +91,28 @@ mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.8 +nbclassic==0.5.1 nbclient==0.5.13 -nbconvert==7.2.6 -nbformat==5.7.0 +nbconvert==7.2.9 +nbformat==5.7.3 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 notebook-shim==0.2.2 -packaging==22.0 +packaging==23.0 pandocfilters==1.5.0 parso==0.8.3 -particle==0.21.0 -pathspec==0.10.2 -pep8-naming==0.13.2 +particle==0.21.1 +pathspec==0.11.0 +pep8-naming==0.13.3 pexpect==4.8.0 pickleshare==0.7.5 pkgutil-resolve-name==1.3.10 -platformdirs==2.6.0 +platformdirs==2.6.2 pluggy==1.0.0 -pre-commit==2.20.0 -prometheus-client==0.15.0 +pre-commit==3.0.1 +prometheus-client==0.16.0 prompt-toolkit==3.0.36 psutil==5.9.4 ptyprocess==0.7.0 @@ -122,26 +121,26 @@ pybtex==0.24.0 pybtex-docutils==1.0.2 pycodestyle==2.10.0 pycparser==2.21 -pydantic==1.10.2 +pydantic==1.10.4 pydata-sphinx-theme==0.8.1 -pydocstyle==6.1.1 +pydocstyle==6.3.0 pydot==1.4.2 pyflakes==3.0.1 -pygments==2.13.0 -pylint==2.15.8 +pygments==2.14.0 +pylint==2.15.10 pyparsing==3.0.9 -pyproject-api==1.2.1 -pyrsistent==0.19.2 -pytest==7.2.0 +pyproject-api==1.5.0 +pyrsistent==0.19.3 +pytest==7.2.1 pytest-cov==4.0.0 pytest-profiling==1.7.0 pytest-xdist==3.1.0 python-constraint==1.4.0 python-dateutil==2.8.2 -pytz==2022.6 +pytz==2022.7.1 pyyaml==6.0 -pyzmq==24.0.1 -requests==2.28.1 +pyzmq==25.0.0 +requests==2.28.2 restructuredtext-lint==1.4.0 send2trash==1.8.0 six==1.16.0 @@ -151,13 +150,13 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.1 +sphinx-codeautolink==0.14.0 sphinx-comments==0.0.3 sphinx-copybutton==0.5.1 sphinx-design==0.3.0 -sphinx-thebe==0.1.2 +sphinx-thebe==0.2.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.2 +sphinxcontrib-applehelp==1.0.4 sphinxcontrib-bibtex==2.5.0 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-hep-pdgref==0.1.4 @@ -166,33 +165,32 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1 -sqlalchemy==1.4.44 +sqlalchemy==1.4.46 stack-data==0.6.2 tabulate==0.9.0 terminado==0.17.1 tinycss2==1.2.1 -toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==4.0.3 +tox==4.4.2 tqdm==4.64.1 -traitlets==5.7.0 -types-docutils==0.19.1.1 +traitlets==5.8.1 +types-docutils==0.19.1.2 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.2 -types-requests==2.28.11.5 -types-setuptools==65.6.0.2 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.13 +urllib3==1.26.14 virtualenv==20.17.1 -wcwidth==0.2.5 +wcwidth==0.2.6 webencodings==0.5.1 -websocket-client==1.4.2 +websocket-client==1.5.0 wheel==0.38.4 wrapt==1.14.1 -zipp==3.11.0 +zipp==3.12.0 # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/.constraints/py3.9.txt b/.constraints/py3.9.txt index af2645e0..a11c8e79 100644 --- a/.constraints/py3.9.txt +++ b/.constraints/py3.9.txt @@ -4,45 +4,44 @@ # # pip-compile --extra=dev --no-annotate --output-file=.constraints/py3.9.txt --strip-extras setup.py # -alabaster==0.7.12 +alabaster==0.7.13 anyio==3.6.2 aquirdturtle-collapsible-headings==3.1.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 -astroid==2.12.13 +astroid==2.13.3 asttokens==2.2.1 -attrs==22.1.0 +attrs==22.2.0 babel==2.11.0 backcall==0.2.0 beautifulsoup4==4.11.1 black==22.12.0 -bleach==5.0.1 -cachetools==5.2.0 +bleach==6.0.0 +cachetools==5.3.0 certifi==2022.12.7 cffi==1.15.1 cfgv==3.3.1 chardet==5.1.0 -charset-normalizer==2.1.1 +charset-normalizer==3.0.1 click==8.1.3 colorama==0.4.6 comm==0.1.2 -coverage==6.5.0 -debugpy==1.6.4 +coverage==7.1.0 +debugpy==1.6.6 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.6 distlib==0.3.6 docutils==0.17.1 -entrypoints==0.4 -exceptiongroup==1.0.4 +exceptiongroup==1.1.0 execnet==1.9.0 executing==1.2.0 fastjsonschema==2.16.2 -filelock==3.8.2 +filelock==3.9.0 flake8==6.0.0 flake8-blind-except==0.2.1 -flake8-bugbear==22.12.6 -flake8-builtins==2.0.1 +flake8-bugbear==23.1.20 +flake8-builtins==2.1.0 flake8-comprehensions==3.10.1 flake8-future-import==0.4.7 flake8-plugin-utils==1.3.2 @@ -52,36 +51,36 @@ flake8-type-ignore==0.1.0.post2 ; python_version >= "3.8.0" flake8-use-fstring==1.4 gprof2dot==2022.7.29 graphviz==0.20.1 -greenlet==2.0.1 -hepunits==2.3.0 -identify==2.5.9 +greenlet==2.0.2 +hepunits==2.3.1 +identify==2.5.15 idna==3.4 imagesize==1.4.1 -importlib-metadata==5.1.0 -iniconfig==1.1.1 -ipykernel==6.19.2 -ipython==8.6.0 +importlib-metadata==6.0.0 +iniconfig==2.0.0 +ipykernel==6.20.2 +ipython==8.9.0 ipython-genutils==0.2.0 -isort==5.10.1 +isort==5.12.0 jedi==0.18.2 jinja2==3.1.2 -json5==0.9.10 +json5==0.9.11 jsonschema==4.17.3 jupyter-cache==0.5.0 -jupyter-client==7.4.8 -jupyter-core==5.1.0 -jupyter-server==1.23.3 -jupyterlab==3.5.1 +jupyter-client==8.0.1 +jupyter-core==5.1.5 +jupyter-server==1.23.5 +jupyterlab==3.5.3 jupyterlab-code-formatter==1.5.3 jupyterlab-markup==1.1.0 jupyterlab-myst==0.1.6 ; python_version >= "3.7.0" jupyterlab-pygments==0.2.2 -jupyterlab-server==2.16.5 +jupyterlab-server==2.19.0 latexcodec==2.0.1 -lazy-object-proxy==1.8.0 +lazy-object-proxy==1.9.0 livereload==2.6.3 markdown-it-py==2.1.0 -markupsafe==2.1.1 +markupsafe==2.1.2 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.3 @@ -91,27 +90,27 @@ mypy==0.991 mypy-extensions==0.4.3 myst-nb==0.17.1 ; python_version >= "3.8.0" myst-parser==0.18.1 -nbclassic==0.4.8 +nbclassic==0.5.1 nbclient==0.5.13 -nbconvert==7.2.6 -nbformat==5.7.0 +nbconvert==7.2.9 +nbformat==5.7.3 nbmake==1.3.0 nest-asyncio==1.5.6 nodeenv==1.7.0 notebook==6.5.2 notebook-shim==0.2.2 -packaging==22.0 +packaging==23.0 pandocfilters==1.5.0 parso==0.8.3 -particle==0.21.0 -pathspec==0.10.2 -pep8-naming==0.13.2 +particle==0.21.1 +pathspec==0.11.0 +pep8-naming==0.13.3 pexpect==4.8.0 pickleshare==0.7.5 -platformdirs==2.6.0 +platformdirs==2.6.2 pluggy==1.0.0 -pre-commit==2.20.0 -prometheus-client==0.15.0 +pre-commit==3.0.1 +prometheus-client==0.16.0 prompt-toolkit==3.0.36 psutil==5.9.4 ptyprocess==0.7.0 @@ -120,26 +119,26 @@ pybtex==0.24.0 pybtex-docutils==1.0.2 pycodestyle==2.10.0 pycparser==2.21 -pydantic==1.10.2 +pydantic==1.10.4 pydata-sphinx-theme==0.8.1 -pydocstyle==6.1.1 +pydocstyle==6.3.0 pydot==1.4.2 pyflakes==3.0.1 -pygments==2.13.0 -pylint==2.15.8 +pygments==2.14.0 +pylint==2.15.10 pyparsing==3.0.9 -pyproject-api==1.2.1 -pyrsistent==0.19.2 -pytest==7.2.0 +pyproject-api==1.5.0 +pyrsistent==0.19.3 +pytest==7.2.1 pytest-cov==4.0.0 pytest-profiling==1.7.0 pytest-xdist==3.1.0 python-constraint==1.4.0 python-dateutil==2.8.2 -pytz==2022.6 +pytz==2022.7.1 pyyaml==6.0 -pyzmq==24.0.1 -requests==2.28.1 +pyzmq==25.0.0 +requests==2.28.2 restructuredtext-lint==1.4.0 send2trash==1.8.0 six==1.16.0 @@ -149,13 +148,13 @@ soupsieve==2.3.2.post1 sphinx==4.5.0 sphinx-autobuild==2021.3.14 sphinx-book-theme==0.3.3 -sphinx-codeautolink==0.12.1 +sphinx-codeautolink==0.14.0 sphinx-comments==0.0.3 sphinx-copybutton==0.5.1 sphinx-design==0.3.0 -sphinx-thebe==0.1.2 +sphinx-thebe==0.2.1 sphinx-togglebutton==0.3.2 -sphinxcontrib-applehelp==1.0.2 +sphinxcontrib-applehelp==1.0.4 sphinxcontrib-bibtex==2.5.0 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-hep-pdgref==0.1.4 @@ -164,33 +163,32 @@ sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sphobjinv==2.3.1 -sqlalchemy==1.4.44 +sqlalchemy==1.4.46 stack-data==0.6.2 tabulate==0.9.0 terminado==0.17.1 tinycss2==1.2.1 -toml==0.10.2 tomli==2.0.1 tomlkit==0.11.6 tornado==6.2 -tox==4.0.3 +tox==4.4.2 tqdm==4.64.1 -traitlets==5.7.0 -types-docutils==0.19.1.1 +traitlets==5.8.1 +types-docutils==0.19.1.2 types-pkg-resources==0.1.3 -types-pyyaml==6.0.12.2 -types-requests==2.28.11.5 -types-setuptools==65.6.0.2 +types-pyyaml==6.0.12.3 +types-requests==2.28.11.8 +types-setuptools==65.7.0.3 types-urllib3==1.26.25.4 typing-extensions==4.4.0 ; python_version < "3.10.0" -urllib3==1.26.13 +urllib3==1.26.14 virtualenv==20.17.1 -wcwidth==0.2.5 +wcwidth==0.2.6 webencodings==0.5.1 -websocket-client==1.4.2 +websocket-client==1.5.0 wheel==0.38.4 wrapt==1.14.1 -zipp==3.11.0 +zipp==3.12.0 # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index af1efda5..049eb32b 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -2,7 +2,7 @@ name: Feature request about: Suggest an idea for this project title: "" -labels: "💡 Enhancement" +labels: "✨ Enhancement" assignees: "" --- diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1846bc6c..9e283cb4 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -7,7 +7,7 @@ references: categories: - title: ✨ New features - label: 💡 Feature + label: ✨ Feature - title: ⚠️ Enhancements and optimizations label: ⚙️ Enhancement - title: ⚠️ API changes diff --git a/.github/workflows/clean-caches.yml b/.github/workflows/clean-caches.yml index 023e6bea..a66c407b 100644 --- a/.github/workflows/clean-caches.yml +++ b/.github/workflows/clean-caches.yml @@ -5,6 +5,11 @@ on: types: - closed workflow_dispatch: + inputs: + ref: + description: Clean caches for this branch name or ref + required: false + type: string jobs: cleanup: @@ -14,3 +19,4 @@ jobs: - uses: ComPWA/actions/clean-caches@v1 with: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ref: ${{ inputs.ref }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c19a1553..79a27c10 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/repo-maintenance - rev: 0.0.165 + rev: 0.0.166 hooks: - id: check-dev-files args: @@ -56,7 +56,7 @@ repos: - --extras-require=doc,viz - repo: https://github.com/nbQA-dev/nbQA - rev: 1.5.3 + rev: 1.6.1 hooks: - id: nbqa-black additional_dependencies: @@ -73,26 +73,17 @@ repos: - id: black - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.13.0 hooks: - id: blacken-docs - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v6.16.0 + rev: v6.19.2 hooks: - id: cspell - - repo: https://github.com/myint/docformatter - rev: v1.5.0 - hooks: - - id: docformatter - args: - - --in-place - - --wrap-descriptions=88 - - --wrap-summaries=88 - - repo: https://github.com/editorconfig-checker/editorconfig-checker.python - rev: 2.6.2 + rev: 2.7.1 hooks: - id: editorconfig-checker name: editorconfig @@ -114,12 +105,12 @@ repos: - python - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.32.2 + rev: v0.33.0 hooks: - id: markdownlint @@ -161,7 +152,7 @@ repos: - id: prettier - repo: https://github.com/pycqa/pydocstyle - rev: 6.1.1 + rev: 6.3.0 hooks: - id: pydocstyle @@ -179,7 +170,7 @@ repos: - python - repo: https://github.com/ComPWA/mirrors-pyright - rev: v1.1.283 + rev: v1.1.291 hooks: - id: pyright diff --git a/pyproject.toml b/pyproject.toml index 56676f76..22bb9f8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ target-version = [ "py38", "py39", "py310", + "py311", ] [tool.isort] diff --git a/setup.cfg b/setup.cfg index e05d7029..111baaf0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,6 +34,7 @@ classifiers = Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Scientific/Engineering Topic :: Scientific/Engineering :: Physics Typing :: Typed @@ -49,7 +50,7 @@ install_requires = python-constraint PyYAML tqdm >=4.24.0 # autonotebook - typing-extensions; python_version <"3.10.0" + typing-extensions; python_version <"3.10.0" # typing.TypeAlias packages = find: package_dir = =src diff --git a/src/qrules/_implementers.py b/src/qrules/_implementers.py index 12c02835..788bfdc8 100644 --- a/src/qrules/_implementers.py +++ b/src/qrules/_implementers.py @@ -5,10 +5,7 @@ import attrs if TYPE_CHECKING: - try: - from IPython.lib.pretty import PrettyPrinter - except ImportError: - PrettyPrinter = Any + from IPython.lib.pretty import PrettyPrinter _DecoratedClass = TypeVar("_DecoratedClass") @@ -35,11 +32,11 @@ def repr_pretty(self: Any, p: "PrettyPrinter", cycle: bool) -> None: value = getattr(self, field.name) p.breakable() p.text(f"{field.name}=") - p.pretty(value) + p.pretty(value) # type: ignore[attr-defined] p.text(",") p.breakable() p.text(")") # pylint: disable=protected-access decorated_class._repr_pretty_ = repr_pretty # type: ignore[attr-defined] - return decorated_class + return decorated_class # type: ignore[return-value] diff --git a/src/qrules/particle.py b/src/qrules/particle.py index 3734325e..01896c48 100644 --- a/src/qrules/particle.py +++ b/src/qrules/particle.py @@ -39,14 +39,10 @@ from .quantum_numbers import Parity, _to_fraction if TYPE_CHECKING: + from IPython.lib.pretty import PrettyPrinter from particle import Particle as PdgDatabase from particle.particle import enums - try: - from IPython.lib.pretty import PrettyPrinter - except ImportError: - PrettyPrinter = Any - def _to_float(value: SupportsFloat) -> float: float_value = float(value) @@ -234,7 +230,7 @@ def _repr_pretty_(self, p: "PrettyPrinter", cycle: bool) -> None: if isinstance(value, Parity): p.text(_to_fraction(int(value), render_plus=True)) else: - p.pretty(value) + p.pretty(value) # type: ignore[attr-defined] p.text(",") p.breakable() p.text(")") @@ -325,7 +321,7 @@ def _repr_pretty_(self, p: "PrettyPrinter", cycle: bool) -> None: with p.group(indent=2, open=f"{class_name}({{"): for particle in self: p.breakable() - p.pretty(particle) + p.pretty(particle) # type: ignore[attr-defined] p.text(",") p.breakable() p.text("})") @@ -506,8 +502,8 @@ def create_antiparticle( def load_pdg() -> ParticleCollection: """Create a `.ParticleCollection` with all entries from the PDG. - PDG info is imported from the `scikit-hep/particle `_ package. + PDG info is imported from the `scikit-hep/particle + `_ package. """ from particle import Particle as PdgDatabase diff --git a/src/qrules/topology.py b/src/qrules/topology.py index 1937ae92..8ead1e54 100644 --- a/src/qrules/topology.py +++ b/src/qrules/topology.py @@ -56,10 +56,7 @@ from typing_extensions import Protocol if TYPE_CHECKING: - try: - from IPython.lib.pretty import PrettyPrinter - except ImportError: - PrettyPrinter = Any + from IPython.lib.pretty import PrettyPrinter class _Comparable(Protocol): @@ -110,7 +107,7 @@ def _repr_pretty_(self, p: "PrettyPrinter", cycle: bool) -> None: for key, value in self.items(): p.breakable() p.text(f"{key}: ") - p.pretty(value) + p.pretty(value) # type: ignore[attr-defined] p.text(",") p.breakable() p.text("})")