Skip to content

Commit fd45146

Browse files
authored
Fix comments in src/neptune_query/internal/warnings.py (#60)
1 parent 350b43e commit fd45146

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/neptune_query/internal/warnings.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@
2727
HttpOtherWarning,
2828
)
2929

30-
# registry of warnings that were already emitted with the (type, message) tuple
30+
# Types of warnings that should be emitted only once per unique message
3131
WARNING_TYPES_EMITTED_ONCE_PER_MESSAGE = (ExperimentalWarning,)
3232

33-
# registry of warning types that were already emitted with the time they should be silenced until
33+
# Types of warnings that should be emitted only once per a certain time period
3434
WARNING_TYPES_EMITTED_ONCE_PER_WHILE = (Http429Warning, Http5xxWarning, HttpOtherWarning)
3535
WARNING_SUPPRESSION_DURATION = timedelta(seconds=20)
3636

37+
# registry of warnings that were already emitted with the (type, message) tuple
3738
_silence_warnings_msg: set[tuple[Type[Warning], str]] = set()
39+
40+
# registry of warning types that were already emitted with the time they should be silenced until
3841
_silence_warnings_until: dict[Type[Warning], datetime] = {}
3942

4043

0 commit comments

Comments
 (0)