Commit 0da71ed1 authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

scenario: clarify what's a Sequence and what's Iterable

parent 23f4b153
......@@ -49,7 +49,7 @@ class Range:
# Queries to these addresses will be handled by this range if the current
# step number belongs to step_range.
addresses: Sequence[IPAddress]
addresses: Iterable[IPAddress]
# Optionally define network conditions for each (or just some) of the addresses.
rtts: Optional[Mapping[IPAddress, RTT]]
......@@ -80,7 +80,7 @@ class Step:
step_id: int
# Iterable of DNS messages to be sent to the program under test
generator: Iterable[Message]
generator: Sequence[Message]
# Function which takes the query sent to the program under test and the reply
# the program provided. Checks if the answer is correct and raises DataMismatch
......@@ -108,5 +108,5 @@ class Time:
class Scenario:
name: str
config: Config
ranges: Sequence[Range]
upstream: Iterable[Range]
steps: Sequence[Union[Step, Time]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment