Check if betterproto has wrapper support in idiomatic way
This commit is contained in:
parent
7ecf3fe0e6
commit
919b0a6a7d
@ -202,7 +202,7 @@ def generate_code(request, response):
|
||||
)
|
||||
if match_wrapper:
|
||||
wrapped_type = "TYPE_" + match_wrapper.group(1).upper()
|
||||
if wrapped_type in dir(betterproto):
|
||||
if hasattr(betterproto, wrapped_type):
|
||||
field_wraps = f"betterproto.{wrapped_type}"
|
||||
|
||||
map_types = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user