Skip to content

Commit 35d72a2

Browse files
Update specfile/sections.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8647cfb commit 35d72a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specfile/sections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def __contains__(self, id: object) -> bool:
174174
except AttributeError:
175175
return False
176176
if isinstance(id, str):
177-
id_lower = cast(str, id).lower()
177+
id_lower = id.lower()
178178
return any(
179179
s.normalized_id == id_lower or s.normalized_name == id_lower
180180
for s in data

0 commit comments

Comments
 (0)