Skip to content

Commit 6d5ee62

Browse files
committed
Make disabling of pylint checks local
When using `# pylint: disable=...` in its own line, it is disabled for the rest of the scope, not only for the next line. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 0ace956 commit 6d5ee62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/timeseries/test_resampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ async def test_calculate_window_end_trivial_cases(
239239
)
240240
)
241241
fake_time.move_to(now)
242-
# pylint: disable=protected-access
242+
# pylint: disable-next=protected-access
243243
assert resampler._calculate_window_end() == result
244244

245245
# Repeat the test with align_to=None, so the result should be align to now
@@ -1406,7 +1406,7 @@ async def test_resampling_all_zeros(
14061406

14071407

14081408
def _get_buffer_len(resampler: Resampler, source_receiver: Source) -> int:
1409-
# pylint: disable=protected-access
1409+
# pylint: disable-next=protected-access
14101410
blen = resampler._resamplers[source_receiver]._helper._buffer.maxlen
14111411
assert blen is not None
14121412
return blen

0 commit comments

Comments
 (0)