fix: resolve mypy type errors

This commit is contained in:
claude[bot] 2026-04-04 18:28:19 +00:00
parent eb430456c3
commit 97132bf8b5

View file

@ -198,6 +198,8 @@ def _detect_export_style(source_code: str, identifier: str) -> str | None:
found_named = False found_named = False
for match in _EXPORT_COMBINED_PATTERN.finditer(source_code): for match in _EXPORT_COMBINED_PATTERN.finditer(source_code):
if match.lastgroup is None:
continue
matched_id = match.group(match.lastgroup) matched_id = match.group(match.lastgroup)
if matched_id == identifier: if matched_id == identifier: