aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripting/api.rst
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-12-13 10:45:31 +1300
committerAldo Cortesi <aldo@corte.si>2017-12-13 11:08:14 +1300
commit4cee1a4f96ef7307e422cf227c8389563323e442 (patch)
tree9e3febc8771eccf2eb6a228e037715b60ae651a7 /docs/scripting/api.rst
parent91a297969494aad68eb46163c004734223a4abd1 (diff)
downloadmitmproxy-4cee1a4f96ef7307e422cf227c8389563323e442.tar.gz
mitmproxy-4cee1a4f96ef7307e422cf227c8389563323e442.tar.bz2
mitmproxy-4cee1a4f96ef7307e422cf227c8389563323e442.zip
commands: formalise a Choice type
This resolves as a string during MyPy checks, but at runtime has an additional attribute that is a command that returns valid options. This is very ugly and clumsy, basically because MyPy is super restrictive about what it accepts as a type. Almost any attempt to construct these types in a more sophisticated way fails in one way or another. I'm open to suggestions.
Diffstat (limited to 'docs/scripting/api.rst')
0 files changed, 0 insertions, 0 deletions