diff options
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: |
