Skip to content

Commit 2230892

Browse files
committed
Re-export L9Subdomain from __init__.py, remove dead R class
- Add L9Subdomain to package exports and __all__ so users can import it directly via `from leakix import L9Subdomain` - Remove R class from response.py: it extends AbstractResponse without implementing abstract methods, making it unusable Closes #31
1 parent 50cf840 commit 2230892

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

leakix/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from leakix.client import Client as Client
33
from leakix.client import HostResult as HostResult
44
from leakix.client import Scope as Scope
5+
from leakix.domain import L9Subdomain as L9Subdomain
56
from leakix.field import (
67
AgeField as AgeField,
78
)
@@ -58,9 +59,6 @@
5859
from leakix.response import (
5960
ErrorResponse as ErrorResponse,
6061
)
61-
from leakix.response import (
62-
R as R,
63-
)
6462
from leakix.response import (
6563
RateLimitResponse as RateLimitResponse,
6664
)
@@ -72,6 +70,7 @@
7270
"__VERSION__",
7371
"Client",
7472
"HostResult",
73+
"L9Subdomain",
7574
"Scope",
7675
# Fields
7776
"AgeField",
@@ -97,7 +96,6 @@
9796
# Response
9897
"AbstractResponse",
9998
"ErrorResponse",
100-
"R",
10199
"RateLimitResponse",
102100
"SuccessResponse",
103101
]

leakix/response.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,3 @@ def is_error(self):
4444

4545
class RateLimitResponse(ErrorResponse):
4646
pass
47-
48-
49-
class R(AbstractResponse):
50-
def __init__(self, response, response_json=None, status_code=None):
51-
super().__init__(response, response_json=response_json, status_code=status_code)

0 commit comments

Comments
 (0)