Skip to content

Commit

Permalink
[rules] Include Response in ResponseFunction type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
nhairs committed Nov 3, 2023
1 parent fb16f02 commit 620d87c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"},
Expand Down
4 changes: 2 additions & 2 deletions src/nserver/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit 620d87c

Please sign in to comment.