Skip to content

Commit ff14948

Browse files
boukeversteeghnat-n
andcommitted
Use raw string for regex
Co-authored-by: nat <[email protected]>
1 parent cb00273 commit ff14948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

betterproto/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def generate_code(request, response):
198198

199199
field_wraps = ""
200200
match_wrapper = re.match(
201-
"\\.google\\.protobuf\\.(.+)Value", f.type_name
201+
r"\.google\.protobuf\.(.+)Value", f.type_name
202202
)
203203
if match_wrapper:
204204
wrapped_type = "TYPE_" + match_wrapper.group(1).upper()

0 commit comments

Comments
 (0)