This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/betterproto2_compiler/plugin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ def py_name(self) -> str:
246
246
247
247
@property
248
248
def deprecated (self ) -> bool :
249
- return self .proto_obj .options and self .proto_obj .options .deprecated
249
+ return bool ( self .proto_obj .options and self .proto_obj .options .deprecated )
250
250
251
251
@property
252
252
def deprecated_fields (self ) -> Iterator [str ]:
@@ -335,7 +335,7 @@ def betterproto_field_args(self) -> list[str]:
335
335
336
336
@property
337
337
def deprecated (self ) -> bool :
338
- return self .proto_obj .options and self .proto_obj .options .deprecated
338
+ return bool ( self .proto_obj .options and self .proto_obj .options .deprecated )
339
339
340
340
@property
341
341
def use_builtins (self ) -> bool :
@@ -439,8 +439,8 @@ def betterproto_field_args(self) -> list[str]:
439
439
440
440
@dataclass (kw_only = True )
441
441
class MapEntryCompiler (FieldCompiler ):
442
- py_k_type : type | None = None
443
- py_v_type : type | None = None
442
+ py_k_type : str | None = None
443
+ py_v_type : str | None = None
444
444
proto_k_type : str = ""
445
445
proto_v_type : str = ""
446
446
@@ -641,4 +641,4 @@ def server_streaming(self) -> bool:
641
641
642
642
@property
643
643
def deprecated (self ) -> bool :
644
- return self .proto_obj .options and self .proto_obj .options .deprecated
644
+ return bool ( self .proto_obj .options and self .proto_obj .options .deprecated )
You can’t perform that action at this time.
0 commit comments