Skip to content

Commit 8b0dfa0

Browse files
committed
fix: Revert to original output type for etree.PyErrorLog.level_map
Enum constants are only used in level values for convenience, not level_map manipulation
1 parent 8b2b63c commit 8b0dfa0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lxml-stubs/etree/_xmlerror.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ class PyErrorLog(_BaseErrorLog):
145145
"""
146146

147147
@property
148-
def level_map(
149-
self,
150-
) -> dict[ErrorLevels, int]: ... # TypedDict req valid identifier keys
148+
def level_map(self) -> dict[int, int]: ...
151149
# Only either one of the 2 args in __init__ is effective;
152150
# when both are specified, 'logger_name' is ignored
153151
@overload

0 commit comments

Comments
 (0)