Skip to content

Commit 81979cd

Browse files
committed
fix: python formatting error
1 parent c2263e2 commit 81979cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/etc/lldb_providers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,15 +410,17 @@ def get_type_name(self):
410410
else:
411411
return "&str"
412412

413+
413414
def _getVariantName(variant) -> str:
414415
"""
415416
Since the enum variant's type name is in the form `TheEnumName::TheVariantName$Variant`,
416417
we can extract `TheVariantName` from it for display purpose.
417418
"""
418419
s = variant.GetType().GetName()
419-
match = re.search(r'::([^:]+)\$Variant$', s)
420+
match = re.search(r"::([^:]+)\$Variant$", s)
420421
return match.group(1) if match else ""
421422

423+
422424
class ClangEncodedEnumProvider:
423425
"""Pretty-printer for 'clang-encoded' enums support implemented in LLDB"""
424426

@@ -444,9 +446,7 @@ def get_child_at_index(self, index: int) -> SBValue:
444446
ClangEncodedEnumProvider.VALUE_MEMBER_NAME
445447
)
446448
return value.CreateChildAtOffset(
447-
_getVariantName(self.variant),
448-
0,
449-
value.GetType()
449+
_getVariantName(self.variant), 0, value.GetType()
450450
)
451451
return None
452452

0 commit comments

Comments
 (0)