Skip to content

Commit 455360e

Browse files
tiranclaude
andauthored
fix: use enum.StrEnum instead of str, enum.Enum (#14)
Fix ruff UP042 lint errors in SymbolBinding and SymbolType classes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Christian Heimes <cheimes@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a840ace commit 455360e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/elfdeps/_elfdeps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
)
3232

3333

34-
class SymbolBinding(str, enum.Enum):
34+
class SymbolBinding(enum.StrEnum):
3535
"""ELF dynamic symbol binding (STB_*)"""
3636

3737
GLOBAL = "global" # Global symbol
3838
WEAK = "weak" # Weak symbol
3939

4040

41-
class SymbolType(str, enum.Enum):
41+
class SymbolType(enum.StrEnum):
4242
"""ELF dynamic symbol type (STT_*)"""
4343

4444
NOTYPE = "notype" # Symbol type is unspecified

0 commit comments

Comments
 (0)