add beartype conf

This commit is contained in:
Valentin Boettcher 2022-11-28 17:46:16 -05:00
parent 7ebe59d531
commit 1d272ddcfc
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE
3 changed files with 29 additions and 26 deletions

View file

@ -5,7 +5,7 @@ from typing import SupportsFloat, Union
import numpy as np
import qutip as qt
from beartype import beartype
from beartype import beartype, BeartypeConf
from scipy.optimize import minimize_scalar
from hops.util.dynamic_matrix import (
DynamicMatrix,

52
poetry.lock generated
View file

@ -69,19 +69,26 @@ python-versions = "*"
[[package]]
name = "beartype"
version = "0.10.4"
version = "0.12.0"
description = "Unbearably fast runtime type checking in pure Python."
category = "main"
optional = false
python-versions = ">=3.6.0"
python-versions = ">=3.7.0"
develop = false
[package.extras]
all = ["typing-extensions (>=3.10.0.0)"]
dev = ["coverage (>=5.5)", "mypy (>=0.800)", "numpy", "pytest (>=4.0.0)", "sphinx", "sphinx (>=4.1.0)", "tox (>=3.20.1)", "typing-extensions"]
doc-rtd = ["sphinx (==4.1.0)", "sphinx-rtd-theme (==0.5.1)"]
test-tox = ["mypy (>=0.800)", "numpy", "pytest (>=4.0.0)", "sphinx", "typing-extensions"]
all = ["typing_extensions (>=3.10.0.0)"]
dev = ["autoapi (>=0.9.0)", "coverage (>=5.5)", "mypy (>=0.800)", "numpy", "pytest (>=4.0.0)", "sphinx", "sphinx (>=4.1.0)", "tox (>=3.20.1)", "typing_extensions"]
doc-rtd = ["furo (==2022.6.21)", "sphinx (==4.1.0)"]
test-tox = ["mypy (>=0.800)", "numpy", "pytest (>=4.0.0)", "sphinx", "typing_extensions"]
test-tox-coverage = ["coverage (>=5.5)"]
[package.source]
type = "git"
url = "https://github.com/beartype/beartype"
reference = "main"
resolved_reference = "8f33d55d7673dc7f2e57216ed03e27d9b971f443"
[[package]]
name = "binfootprint"
version = "0.2.0"
@ -332,7 +339,7 @@ python-versions = ">=3.9,<3.11"
develop = false
[package.dependencies]
beartype = "^0.10.1"
beartype = {git = "https://github.com/beartype/beartype", branch = "main"}
binfootprint = {git = "https://github.com/vale981/binfootprint"}
click = "==8.0.4"
click-spinner = "^0.1.10"
@ -355,7 +362,7 @@ plotting = ["matplotlib (>=3.5.0,<4.0.0)"]
type = "git"
url = "git@gitlab.hrz.tu-chemnitz.de:s8896854--tu-dresden.de/hops.git"
reference = "main"
resolved_reference = "ced7c18bb10ed3f2313e8f566aa9d1c8eda46373"
resolved_reference = "ef9c3a500f9b2aa954a7f5b228c81d5363630b0d"
[[package]]
name = "hopsflow"
@ -380,7 +387,7 @@ tqdm = "^4.62.3"
type = "git"
url = "https://github.com/vale981/hopsflow"
reference = "main"
resolved_reference = "7df9cdf5e56da571fe6c6eb9e8fba09187041302"
resolved_reference = "0d9aef9364bd37eb31ad59a609d6dc1d3801eb4b"
[[package]]
name = "humanfriendly"
@ -411,7 +418,7 @@ python-versions = "*"
[[package]]
name = "ipython"
version = "8.6.0"
version = "8.7.0"
description = "IPython: Productive Interactive Computing"
category = "main"
optional = false
@ -426,7 +433,7 @@ jedi = ">=0.16"
matplotlib-inline = "*"
pexpect = {version = ">4.3", markers = "sys_platform != \"win32\""}
pickleshare = "*"
prompt-toolkit = ">3.0.1,<3.1.0"
prompt-toolkit = ">=3.0.11,<3.1.0"
pygments = ">=2.4.0"
stack-data = "*"
traitlets = ">=5"
@ -941,7 +948,7 @@ python-versions = "*"
[[package]]
name = "stack-data"
version = "0.6.1"
version = "0.6.2"
description = "Extract data from python stack frames and tracebacks for informative displays"
category = "main"
optional = false
@ -1079,7 +1086,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[[package]]
name = "virtualenv"
version = "20.16.7"
version = "20.17.0"
description = "Virtual Python Environment builder"
category = "main"
optional = false
@ -1105,7 +1112,7 @@ python-versions = "*"
[metadata]
lock-version = "1.1"
python-versions = ">=3.9,<3.11"
content-hash = "4c53fac97d056de10be6182bbbb8150a3b1f7265faa59630eb5b9b928cc48721"
content-hash = "8ad2194ceae6a25e4bcb6e25d0ac8349185008286a5e8a6bbf39ccc647363df3"
[metadata.files]
aiosignal = [
@ -1132,10 +1139,7 @@ backcall = [
{file = "backcall-0.2.0-py2.py3-none-any.whl", hash = "sha256:fbbce6a29f263178a1f7915c1940bde0ec2b2a967566fe1c65c1dfb7422bd255"},
{file = "backcall-0.2.0.tar.gz", hash = "sha256:5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"},
]
beartype = [
{file = "beartype-0.10.4-py3-none-any.whl", hash = "sha256:1a65453bc25b39979bf5ad65fe5e73350551282956456d828fb5783468649e3e"},
{file = "beartype-0.10.4.tar.gz", hash = "sha256:24ec69f6a7f4e6e97af403d08de270def3248518060327095d23b1c4df64bf2a"},
]
beartype = []
binfootprint = []
certifi = [
{file = "certifi-2022.9.24-py3-none-any.whl", hash = "sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382"},
@ -1423,8 +1427,8 @@ iniconfig = [
{file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"},
]
ipython = [
{file = "ipython-8.6.0-py3-none-any.whl", hash = "sha256:91ef03016bcf72dd17190f863476e7c799c6126ec7e8be97719d1bc9a78a59a4"},
{file = "ipython-8.6.0.tar.gz", hash = "sha256:7c959e3dedbf7ed81f9b9d8833df252c430610e2a4a6464ec13cd20975ce20a5"},
{file = "ipython-8.7.0-py3-none-any.whl", hash = "sha256:352042ddcb019f7c04e48171b4dd78e4c4bb67bf97030d170e154aac42b656d9"},
{file = "ipython-8.7.0.tar.gz", hash = "sha256:882899fe78d5417a0aa07f995db298fa28b58faeba2112d2e3a4c95fe14bb738"},
]
jedi = [
{file = "jedi-0.18.2-py2.py3-none-any.whl", hash = "sha256:203c1fd9d969ab8f2119ec0a3342e0b49910045abe6af0a3ae83a5764d54639e"},
@ -1975,8 +1979,8 @@ sqlitedict = [
{file = "sqlitedict-1.7.0.tar.gz", hash = "sha256:2affcc301aacd4da7511692601ecbde392294205af418498f7d6d3ec0dbcad56"},
]
stack-data = [
{file = "stack_data-0.6.1-py3-none-any.whl", hash = "sha256:960cb054d6a1b2fdd9cbd529e365b3c163e8dabf1272e02cfe36b58403cff5c6"},
{file = "stack_data-0.6.1.tar.gz", hash = "sha256:6c9a10eb5f342415fe085db551d673955611afb821551f554d91772415464315"},
{file = "stack_data-0.6.2-py3-none-any.whl", hash = "sha256:cbb2a53eb64e5785878201a97ed7c7b94883f48b87bfb0bbe8b623c74679e4a8"},
{file = "stack_data-0.6.2.tar.gz", hash = "sha256:32d2dd0376772d01b6cb9fc996f3c8b57a357089dec328ed4b6553d037eaf815"},
]
stocproc = []
toml = [
@ -2012,8 +2016,8 @@ urllib3 = [
{file = "urllib3-1.26.13.tar.gz", hash = "sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8"},
]
virtualenv = [
{file = "virtualenv-20.16.7-py3-none-any.whl", hash = "sha256:efd66b00386fdb7dbe4822d172303f40cd05e50e01740b19ea42425cbe653e29"},
{file = "virtualenv-20.16.7.tar.gz", hash = "sha256:8691e3ff9387f743e00f6bb20f70121f5e4f596cae754531f2b3b3a1b1ac696e"},
{file = "virtualenv-20.17.0-py3-none-any.whl", hash = "sha256:40a7e06a98728fd5769e1af6fd1a706005b4bb7e16176a272ed4292473180389"},
{file = "virtualenv-20.17.0.tar.gz", hash = "sha256:7d6a8d55b2f73b617f684ee40fd85740f062e1f2e379412cb1879c7136f05902"},
]
wcwidth = [
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"},

View file

@ -11,7 +11,6 @@ python = ">=3.9,<3.11"
numpy = "^1.20.0"
qutip = "^4.6.3"
hopsflow = { git = "https://github.com/vale981/hopsflow", branch="main" }
beartype = "^0.10.1"
filelock = "^3.6.0"
matplotlib = "^3.6.2"