1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/mitmproxy/py311.patch
2022-11-24 07:13:48 +01:00

13 lines
508 B
Diff

diff --git a/mitmproxy/contentviews/grpc.py b/mitmproxy/contentviews/grpc.py
index a5ef997..5c73220 100644
--- a/mitmproxy/contentviews/grpc.py
+++ b/mitmproxy/contentviews/grpc.py
@@ -951,7 +951,7 @@ def format_grpc(
@dataclass
class ViewConfig:
- parser_options: ProtoParser.ParserOptions = ProtoParser.ParserOptions()
+ parser_options: ProtoParser.ParserOptions = field(default_factory=ProtoParser.ParserOptions)
parser_rules: list[ProtoParser.ParserRule] = field(default_factory=list)