mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 14:12:45 +01:00
feat: casefold mod names before sorting
This commit is contained in:
1 parent
5757f79755
commit
8bcb64810d
5 files changed
+23
-17
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
from enum import Enum
|
||||
from typing import Self
|
||||
from typing import Any, Self
|
||||
|
||||
from dzgui.util import strings
|
||||
|
||||
@@ -47,7 +47,7 @@ class FilterMode(Enum):
|
||||
|
||||
|
||||
class EnumWithAttrs(Enum):
|
||||
def __new__(cls, *args, **kwargs) -> Self:
|
||||
def __new__(cls, *args: Any, **kwargs: Any) -> Self:
|
||||
value = len(cls.__members__) + 1
|
||||
obj = object.__new__(cls)
|
||||
obj._value_ = value
|
||||
|
||||
Reference in new issue
Block a user