Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils authored Aug 27, 2020
1 parent 72dd567 commit 8e5e43d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mitmproxy/utils/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_option_type(name: str, value: typing.Any, typeinfo: Type) -> None:

typename = str(typeinfo)

if typename.startswith("typing.Union"):
if typename.startswith("typing.Union") or typename.startswith("typing.Optional"):
for T in union_types(typeinfo):
try:
check_option_type(name, value, T)
Expand Down

0 comments on commit 8e5e43d

Please sign in to comment.