File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/neptune_query/internal Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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
3131WARNING_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
3434WARNING_TYPES_EMITTED_ONCE_PER_WHILE = (Http429Warning , Http5xxWarning , HttpOtherWarning )
3535WARNING_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
You can’t perform that action at this time.
0 commit comments