pyscalpel.events

Events that can be passed to the match() hook

 1"""Events that can be passed to the match() hook"""
 2
 3from typing import Literal, get_args
 4
 5MatchEvent = Literal[
 6    "request",
 7    "response",
 8    "req_edit_in",
 9    "req_edit_out",
10    "res_edit_in",
11    "res_edit_out",
12]
13
14
15MATCH_EVENTS: set[MatchEvent] = set(get_args(MatchEvent))
MatchEvent = typing.Literal['request', 'response', 'req_edit_in', 'req_edit_out', 'res_edit_in', 'res_edit_out']
MATCH_EVENTS: set[typing.Literal['request', 'response', 'req_edit_in', 'req_edit_out', 'res_edit_in', 'res_edit_out']] = {'request', 'res_edit_out', 'req_edit_out', 'response', 'req_edit_in', 'res_edit_in'}