Skip to content

Commit 3474a62

Browse files
committed
Fixed code formatting issue due to cherry-picked reverts
1 parent eb223cd commit 3474a62

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

ignite/contrib/handlers/custom_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ def on_every_10_epochs(engine):
5454
"""
5555

5656
def __init__(self, n_iterations=None, n_epochs=None):
57-
5857
warnings.warn(
5958
"CustomPeriodicEvent is deprecated since 0.4.0 and will be removed in 0.4.14. Use filtered events instead.",
6059
DeprecationWarning,

tests/ignite/contrib/handlers/test_custom_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def test_bad_input():
10-
1110
with pytest.warns(DeprecationWarning, match=r"CustomPeriodicEvent is deprecated"):
1211
with pytest.raises(TypeError, match="Argument n_iterations should be an integer"):
1312
CustomPeriodicEvent(n_iterations="a")

tests/ignite/contrib/handlers/test_tqdm_logger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ def test_pbar_wrong_events_order():
469469

470470

471471
def test_pbar_on_custom_events(capsys):
472-
473472
engine = Engine(update_fn)
474473
pbar = ProgressBar()
475474
with pytest.warns(DeprecationWarning, match="CustomPeriodicEvent is deprecated"):

0 commit comments

Comments
 (0)