Skip to content

Commit e594b60

Browse files
tiranclaude
andcommitted
fix: use enum.StrEnum instead of str, enum.Enum (UP042)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent a840ace commit e594b60

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)