Skip to content

Commit

Permalink
remove problematic type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Jan 22, 2024
1 parent 4cea553 commit 554a162
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 34 deletions.
2 changes: 1 addition & 1 deletion package/PartSeg/common_gui/universal_gui_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class EnumComboBox(QEnumComboBox):
For proper showing labels overload the ``__str__`` function of given :py:class:`enum.Enum`
"""

def __init__(self, enum: type(EnumType), parent=None):
def __init__(self, enum, parent=None):
warnings.warn(
"EnumComboBox is deprecated, use superqt.QEnumComboBox instead", category=DeprecationWarning, stacklevel=2
)
Expand Down
45 changes: 18 additions & 27 deletions requirements/constraints_py3.11_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defusedxml==0.7.1
# via PartSeg (setup.cfg)
docstring-parser==0.15
# via magicgui
docutils==0.17.1
docutils==0.20.1
# via
# sphinx
# sphinx-qt-documentation
Expand Down Expand Up @@ -154,7 +154,7 @@ mpmath==1.3.0
# via sympy
mypy-extensions==1.0.0
# via psygnal
napari==0.4.18
napari==0.4.19rc3
# via PartSeg (setup.cfg)
napari-console==0.0.9
# via napari
Expand Down Expand Up @@ -192,7 +192,7 @@ numpy==1.26.3
# scipy
# tifffile
# vispy
numpydoc==1.5.0
numpydoc==1.6.0
# via napari
oiffile==2023.8.30
# via PartSeg (setup.cfg)
Expand Down Expand Up @@ -382,40 +382,29 @@ six==1.16.0
# python-dateutil
snowballstemmer==2.2.0
# via sphinx
sphinx==4.5.0
sphinx==7.2.6
# via
# PartSeg (setup.cfg)
# autodoc-pydantic
# napari
# numpydoc
# sphinx-autodoc-typehints
# sphinx-qt-documentation
sphinx-autodoc-typehints==1.19.1
sphinx-autodoc-typehints==1.25.2
# via PartSeg (setup.cfg)
sphinx-qt-documentation==0.4.1
# via PartSeg (setup.cfg)
sphinxcontrib-applehelp==1.0.4
# via
# -r requirements/version_denylist.txt
# sphinx
sphinxcontrib-devhelp==1.0.2
# via
# -r requirements/version_denylist.txt
# sphinx
sphinxcontrib-htmlhelp==2.0.1
# via
# -r requirements/version_denylist.txt
# sphinx
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-devhelp==1.0.6
# via sphinx
sphinxcontrib-htmlhelp==2.0.5
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.3
# via
# -r requirements/version_denylist.txt
# sphinx
sphinxcontrib-serializinghtml==1.1.5
# via
# -r requirements/version_denylist.txt
# sphinx
sphinxcontrib-qthelp==1.0.7
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
# via sphinx
stack-data==0.6.3
# via ipython
superqt==0.6.1
Expand All @@ -425,6 +414,8 @@ superqt==0.6.1
# napari
sympy==1.12
# via PartSeg (setup.cfg)
tabulate==0.9.0
# via numpydoc
tifffile==2023.12.9
# via
# PartSeg (setup.cfg)
Expand Down Expand Up @@ -474,7 +465,7 @@ urllib3==2.1.0
# via
# requests
# sentry-sdk
vispy==0.12.2
vispy==0.14.1
# via
# PartSeg (setup.cfg)
# napari
Expand Down
5 changes: 0 additions & 5 deletions requirements/version_denylist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@ npe2!=0.2.2
imageio != 2.22.1
pydantic<2.0
sentry-sdk!=1.29.0
sphinxcontrib-applehelp!=1.0.8
sphinxcontrib-devhelp!=1.0.6
sphinxcontrib-htmlhelp!=2.0.5
sphinxcontrib-qthelp!=1.0.7
sphinxcontrib-serializinghtml!=1.1.10
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ commands =
[testenv:docs]
deps =
{[testenv]deps}
-rrequirements/constraints_py3.9.txt
-rrequirements/constraints_py3.11_docs.txt
allowlist_externals =
make
tar
Expand Down

0 comments on commit 554a162

Please sign in to comment.