Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 6ca8b6a

Browse files
committed
Rename parameter
1 parent 7af3612 commit 6ca8b6a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/betterproto2_compiler/compile/importing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_type_reference(
6161
imports: set,
6262
source_type: str,
6363
request: PluginRequestCompiler,
64-
unwrap: bool = True,
64+
wrap: bool = True,
6565
settings: Settings,
6666
) -> str:
6767
"""
@@ -70,7 +70,7 @@ def get_type_reference(
7070
"""
7171
source_package, source_type = parse_source_type_name(source_type, request)
7272

73-
if unwrap and (source_package, source_type) in WRAPPED_TYPES:
73+
if wrap and (source_package, source_type) in WRAPPED_TYPES:
7474
return WRAPPED_TYPES[(source_package, source_type)]
7575

7676
current_package: list[str] = package.split(".") if package else []

src/betterproto2_compiler/plugin/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def betterproto_field_args(self) -> list[str]:
327327
source_type=self.proto_obj.type_name,
328328
request=self.output_file.parent_request,
329329
settings=self.output_file.settings,
330-
unwrap=False,
330+
wrap=False,
331331
)
332332

333333
# 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:
593593
imports=self.parent.output_file.imports_end,
594594
source_type=self.proto_obj.input_type,
595595
request=self.parent.output_file.parent_request,
596-
unwrap=False,
596+
wrap=False,
597597
settings=self.parent.output_file.settings,
598598
)
599599

@@ -620,7 +620,7 @@ def py_output_message_type(self) -> str:
620620
imports=self.parent.output_file.imports_end,
621621
source_type=self.proto_obj.output_type,
622622
request=self.parent.output_file.parent_request,
623-
unwrap=False,
623+
wrap=False,
624624
settings=self.parent.output_file.settings,
625625
)
626626

0 commit comments

Comments
 (0)