Skip to content

Commit

Permalink
update typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Oct 19, 2023
1 parent ddd2cf9 commit 4c6de11
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/cfn_guard_rs/python/cfn_guard_rs/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RuleReport:

name: str = field()
metadata: Dict[str, Any] = field()
messages: Messages = field()
messages: Messages | None = field()
checks: Sequence[ClauseReport] = field()

@classmethod
Expand All @@ -73,7 +73,7 @@ class GuardBlockReport(ValueComparisons):
"""Guard Block Report"""

context: str = field()
messages: Messages = field()
messages: Messages | None = field()
unresolved: Any = field()

@classmethod
Expand All @@ -100,7 +100,7 @@ def value_to(self) -> Any:
class DisjunctionsReport:
"""Disjunctions"""

checks: ClauseReport = field()
checks: ClauseReport | None = field()

@classmethod
def from_object(cls, obj) -> "DisjunctionsReport" | None:
Expand All @@ -115,7 +115,7 @@ class UnaryComparison:
"""Unary Comparison"""

value: Any = field()
comparison: Tuple[str, bool] = field()
comparison: Tuple[Any, ...] | None = field()

@classmethod
def from_object(cls, obj) -> "UnaryComparison" | None:
Expand Down Expand Up @@ -200,8 +200,8 @@ class UnaryReport:
"""Unary Report"""

context: str = field()
messages: Messages = field()
check: UnaryCheck = field()
messages: Messages | None = field()
check: UnaryCheck | None = field()

@classmethod
def from_object(cls, obj) -> "UnaryReport" | None:
Expand Down Expand Up @@ -286,8 +286,8 @@ def value_to(self) -> Any:
@dataclass(eq=True, frozen=True)
class BinaryReport:
context: str = field()
messages: Messages = field()
check: BinaryCheck = field()
messages: Messages | None = field()
check: BinaryCheck | None = field()

@classmethod
def from_object(cls, obj) -> "BinaryReport" | None:
Expand Down

0 comments on commit 4c6de11

Please sign in to comment.