mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
Cannot use bare deprecated decorator
This commit is contained in:
@@ -36,7 +36,7 @@ denoise_tv_chambolle = deprecated('skimage.restoration.denoise_tv_chambolle')\
|
||||
(restoration.denoise_tv_chambolle)
|
||||
|
||||
# Backward compatibility v<0.11
|
||||
@deprecated
|
||||
@deprecated()
|
||||
def canny(*args, **kwargs):
|
||||
# Hack to avoid circular import
|
||||
from skimage.feature._canny import canny as canny_
|
||||
|
||||
@@ -23,7 +23,7 @@ denoise_tv_chambolle = deprecated('skimage.restoration.denoise_tv_chambolle')\
|
||||
(restoration.denoise_tv_chambolle)
|
||||
|
||||
# Backward compatibility v<0.11
|
||||
@deprecated
|
||||
@deprecated()
|
||||
def canny(*args, **kwargs):
|
||||
# Hack to avoid circular import
|
||||
from ..feature._canny import canny as canny_
|
||||
|
||||
Reference in New Issue
Block a user