Skip to content

Commit 5d83196

Browse files
committed
Improved usage of deprecated decorator
1 parent 818fb75 commit 5d83196

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

src/tdamapper/clustering.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ class TrivialClustering(tdamapper.core.TrivialClustering):
1818
release. Use :class:`tdamapper.core.TrivialClustering`.
1919
"""
2020

21-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.core.TrivialClustering.')
21+
@deprecated(
22+
'This class is deprecated and will be removed in a future release. '
23+
'Use tdamapper.core.TrivialClustering.'
24+
)
2225
def __init__(self, *args, **kwargs):
2326
super().__init__(*args, **kwargs)
2427

@@ -29,7 +32,10 @@ class FailSafeClustering(tdamapper.core.FailSafeClustering):
2932
release. Use :class:`tdamapper.core.FailSafeClustering`.
3033
"""
3134

32-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.core.FailSafeClustering.')
35+
@deprecated(
36+
'This class is deprecated and will be removed in a future release. '
37+
'Use tdamapper.core.FailSafeClustering.'
38+
)
3339
def __init__(self, *args, **kwargs):
3440
super().__init__(*args, **kwargs)
3541

@@ -69,6 +75,9 @@ class MapperClustering(_MapperClustering):
6975
release. Use :class:`tdamapper.learn.MapperClustering`.
7076
"""
7177

72-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.learn.MapperClustering.')
78+
@deprecated(
79+
'This class is deprecated and will be removed in a future release. '
80+
'Use tdamapper.learn.MapperClustering.'
81+
)
7382
def __init__(self, *args, **kwargs):
7483
super().__init__(*args, **kwargs)

src/tdamapper/core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,10 @@ class MapperAlgorithm(_MapperAlgorithm):
424424
release. Use :class:`tdamapper.learn.MapperAlgorithm`.
425425
"""
426426

427-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.learn.MapperAlgorithm.')
427+
@deprecated(
428+
'This class is deprecated and will be removed in a future release. '
429+
'Use tdamapper.learn.MapperAlgorithm.'
430+
)
428431
def __init__(self, *args, **kwargs):
429432
super().__init__(*args, **kwargs)
430433

src/tdamapper/plot.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,10 @@ class MapperLayoutInteractive:
289289
:type cmap: str, optional
290290
"""
291291

292-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.plot.MapperPlot.')
292+
@deprecated(
293+
'This class is deprecated and will be removed in a future release. '
294+
'Use tdamapper.plot.MapperPlot.'
295+
)
293296
def __init__(
294297
self,
295298
graph,
@@ -447,7 +450,10 @@ class MapperLayoutStatic:
447450
:type cmap: str, optional
448451
"""
449452

450-
@deprecated('This class is deprecated and will be removed in a future release. Use tdamapper.plot.MapperPlot.')
453+
@deprecated(
454+
'This class is deprecated and will be removed in a future release. '
455+
'Use tdamapper.plot.MapperPlot.'
456+
)
451457
def __init__(
452458
self,
453459
graph,

0 commit comments

Comments
 (0)