This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/betterproto2_compiler Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def get_type_reference(
61
61
imports : set ,
62
62
source_type : str ,
63
63
request : PluginRequestCompiler ,
64
- unwrap : bool = True ,
64
+ wrap : bool = True ,
65
65
settings : Settings ,
66
66
) -> str :
67
67
"""
@@ -70,7 +70,7 @@ def get_type_reference(
70
70
"""
71
71
source_package , source_type = parse_source_type_name (source_type , request )
72
72
73
- if unwrap and (source_package , source_type ) in WRAPPED_TYPES :
73
+ if wrap and (source_package , source_type ) in WRAPPED_TYPES :
74
74
return WRAPPED_TYPES [(source_package , source_type )]
75
75
76
76
current_package : list [str ] = package .split ("." ) if package else []
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ def betterproto_field_args(self) -> list[str]:
327
327
source_type = self .proto_obj .type_name ,
328
328
request = self .output_file .parent_request ,
329
329
settings = self .output_file .settings ,
330
- unwrap = False ,
330
+ wrap = False ,
331
331
)
332
332
333
333
# Without the lambda function, the type is evaluated right away, which fails since the corresponding
@@ -593,7 +593,7 @@ def py_input_message_type(self) -> str:
593
593
imports = self .parent .output_file .imports_end ,
594
594
source_type = self .proto_obj .input_type ,
595
595
request = self .parent .output_file .parent_request ,
596
- unwrap = False ,
596
+ wrap = False ,
597
597
settings = self .parent .output_file .settings ,
598
598
)
599
599
@@ -620,7 +620,7 @@ def py_output_message_type(self) -> str:
620
620
imports = self .parent .output_file .imports_end ,
621
621
source_type = self .proto_obj .output_type ,
622
622
request = self .parent .output_file .parent_request ,
623
- unwrap = False ,
623
+ wrap = False ,
624
624
settings = self .parent .output_file .settings ,
625
625
)
626
626
You can’t perform that action at this time.
0 commit comments