diff --git a/pyproject.toml b/pyproject.toml index e422561..7984048 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "nserver" -version = "1.0.0" +version = "1.0.1" description = "DNS Name Server Framework" authors = [ {name = "Nicholas Hairs", email = "info+nserver@nicholashairs.com"}, diff --git a/src/nserver/rules.py b/src/nserver/rules.py index 60b3621..ca05b9f 100644 --- a/src/nserver/rules.py +++ b/src/nserver/rules.py @@ -10,12 +10,12 @@ import tldextract ## Application -from .models import Query +from .models import Query, Response from .records import RecordBase ### CLASSES ### ============================================================================ -ResponseFunction = Callable[[Query], Union[None, RecordBase, List[RecordBase]]] +ResponseFunction = Callable[[Query], Union[None, RecordBase, List[RecordBase], Response]] """ Type Alias for functions that will be called when a rule is matched """