Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit aa05ded

Browse files
authored
Merge pull request #43 from Hepheir:issue42
Unimport `typing.Final` Fix #42
2 parents f5690bd + 524ad27 commit aa05ded

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎w3/python/core/fundamental_interface/DOMException.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from typing import Final
21
from ctypes import c_ushort
32

43

@@ -19,16 +18,16 @@ class DOMException(Exception):
1918

2019
# Definition group `ExceptionCode`
2120
# An integer indicating the type of error generated.
22-
INDEX_SIZE_ERR: Final[c_ushort] = 1
23-
DOMSTRING_SIZE_ERR: Final[c_ushort] = 2
24-
HIERARCHY_REQUEST_ERR: Final[c_ushort] = 3
25-
WRONG_DOCUMENT_ERR: Final[c_ushort] = 4
26-
INVALID_CHARACTER_ERR: Final[c_ushort] = 5
27-
NO_DATA_ALLOWED_ERR: Final[c_ushort] = 6
28-
NO_MODIFICATION_ALLOWED_ERR: Final[c_ushort] = 7
29-
NOT_FOUND_ERR: Final[c_ushort] = 8
30-
NOT_SUPPORTED_ERR: Final[c_ushort] = 9
31-
INUSE_ATTRIBUTE_ERR: Final[c_ushort] = 10
21+
INDEX_SIZE_ERR: c_ushort = c_ushort(1)
22+
DOMSTRING_SIZE_ERR: c_ushort = c_ushort(2)
23+
HIERARCHY_REQUEST_ERR: c_ushort = c_ushort(3)
24+
WRONG_DOCUMENT_ERR: c_ushort = c_ushort(4)
25+
INVALID_CHARACTER_ERR: c_ushort = c_ushort(5)
26+
NO_DATA_ALLOWED_ERR: c_ushort = c_ushort(6)
27+
NO_MODIFICATION_ALLOWED_ERR: c_ushort = c_ushort(7)
28+
NOT_FOUND_ERR: c_ushort = c_ushort(8)
29+
NOT_SUPPORTED_ERR: c_ushort = c_ushort(9)
30+
INUSE_ATTRIBUTE_ERR: c_ushort = c_ushort(10)
3231

3332
def __init__(self, error_code: c_ushort, *args: object) -> None:
3433
super().__init__(*args)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /