From 22308920c1791345161b26b352d27019662133fb Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Sun, 8 Feb 2026 00:02:25 -0300 Subject: [PATCH] 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 --- leakix/__init__.py | 6 ++---- leakix/response.py | 5 ----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/leakix/__init__.py b/leakix/__init__.py index d3d128b..fa10914 100644 --- a/leakix/__init__.py +++ b/leakix/__init__.py @@ -2,6 +2,7 @@ from leakix.client import Client as Client from leakix.client import HostResult as HostResult from leakix.client import Scope as Scope +from leakix.domain import L9Subdomain as L9Subdomain from leakix.field import ( AgeField as AgeField, ) @@ -58,9 +59,6 @@ from leakix.response import ( ErrorResponse as ErrorResponse, ) -from leakix.response import ( - R as R, -) from leakix.response import ( RateLimitResponse as RateLimitResponse, ) @@ -72,6 +70,7 @@ "__VERSION__", "Client", "HostResult", + "L9Subdomain", "Scope", # Fields "AgeField", @@ -97,7 +96,6 @@ # Response "AbstractResponse", "ErrorResponse", - "R", "RateLimitResponse", "SuccessResponse", ] diff --git a/leakix/response.py b/leakix/response.py index cfb7cfa..67b55ea 100644 --- a/leakix/response.py +++ b/leakix/response.py @@ -44,8 +44,3 @@ def is_error(self): class RateLimitResponse(ErrorResponse): pass - - -class R(AbstractResponse): - def __init__(self, response, response_json=None, status_code=None): - super().__init__(response, response_json=response_json, status_code=status_code)