diff options
| author | dm <dm@work-pc> | 2022-02-18 11:05:22 +0800 |
|---|---|---|
| committer | Árni Dagur <arni@dagur.eu> | 2022-02-26 22:06:53 +0100 |
| commit | 71210038c16fefbf741d573a29334db08271b4b6 (patch) | |
| tree | 5e8f99474fd5b0ff5944d5e7b9725a8865f20935 /adblock | |
| parent | 64c1fa2c91b55a35eceeffab6e0715374a5a7231 (diff) | |
refactor: AddResourceException inheritance relationship && RustBlockerResult implementations
Diffstat (limited to 'adblock')
| -rw-r--r-- | adblock/__init__.py | 8 | ||||
| -rw-r--r-- | adblock/adblock.pyi | 8 |
2 files changed, 13 insertions, 3 deletions
diff --git a/adblock/__init__.py b/adblock/__init__.py index 4ba4c4b..b231aeb 100644 --- a/adblock/__init__.py +++ b/adblock/__init__.py | |||
| @@ -11,7 +11,9 @@ from adblock.adblock import ( | |||
| 11 | OptimizedFilterExistence, | 11 | OptimizedFilterExistence, |
| 12 | BadFilterAddUnsupported, | 12 | BadFilterAddUnsupported, |
| 13 | FilterExists, | 13 | FilterExists, |
| 14 | AddResourceError, | 14 | AddResourceException, |
| 15 | InvalidUtf8ContentError, | ||
| 16 | InvalidBase64ContentError, | ||
| 15 | ) | 17 | ) |
| 16 | 18 | ||
| 17 | 19 | ||
| @@ -27,5 +29,7 @@ __all__ = ( | |||
| 27 | "OptimizedFilterExistence", | 29 | "OptimizedFilterExistence", |
| 28 | "BadFilterAddUnsupported", | 30 | "BadFilterAddUnsupported", |
| 29 | "FilterExists", | 31 | "FilterExists", |
| 30 | "AddResourceError", | 32 | "AddResourceException", |
| 33 | "InvalidUtf8ContentError", | ||
| 34 | "InvalidBase64ContentError", | ||
| 31 | ) | 35 | ) |
diff --git a/adblock/adblock.pyi b/adblock/adblock.pyi index 4ed340c..9fae1da 100644 --- a/adblock/adblock.pyi +++ b/adblock/adblock.pyi | |||
| @@ -21,7 +21,13 @@ class BadFilterAddUnsupported(BlockerException): | |||
| 21 | class FilterExists(BlockerException): | 21 | class FilterExists(BlockerException): |
| 22 | pass | 22 | pass |
| 23 | 23 | ||
| 24 | class AddResourceError(BlockerException): | 24 | class AddResourceException(AdblockException): |
| 25 | pass | ||
| 26 | |||
| 27 | class InvalidUtf8ContentError(AddResourceException): | ||
| 28 | pass | ||
| 29 | |||
| 30 | class InvalidBase64ContentError(AddResourceException): | ||
| 25 | pass | 31 | pass |
| 26 | 32 | ||
| 27 | class BlockerResult: | 33 | class BlockerResult: |
