Skip to content

Commit d4333e1

Browse files
committed
Fix mypy errors
The latest version of mypy enforces that enum members do not have type annotations, because the type of every member of a subclass of `Enum` is that subclass itself. Signed-off-by: Pablo Galindo <[email protected]>
1 parent 21d0fc1 commit d4333e1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/pystack/_pystack.pyi

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ class CoreFileAnalyzer:
2424
def missing_modules(self) -> List[str]: ...
2525

2626
class NativeReportingMode(enum.Enum):
27-
ALL: int
28-
OFF: int
29-
PYTHON: int
27+
ALL = 1
28+
OFF = 2
29+
PYTHON = 3
3030

3131
class StackMethod(enum.Enum):
32-
ALL: int
33-
ANONYMOUS_MAPS: int
34-
AUTO: int
35-
BSS: int
36-
ELF_DATA: int
37-
HEAP: int
38-
SYMBOLS: int
39-
DEBUG_OFFSETS: int
32+
ALL = 1
33+
ANONYMOUS_MAPS = 2
34+
AUTO = 3
35+
BSS = 4
36+
ELF_DATA = 5
37+
HEAP = 6
38+
SYMBOLS = 7
39+
DEBUG_OFFSETS = 8
4040

4141
class ProcessManager: ...
4242

0 commit comments

Comments
 (0)