Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
daall committed Aug 6, 2020
1 parent c25e6fa commit 03d33e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/dvslib/dvs_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def verify_acl_rule_set(
self.verify_acl_rule(expected[priority], in_actions[priority], priority, entry)

# FIXME: This `get_x_comparator` abstraction is a bit clunky, we should try to improve this later.
def get_simple_qualifier_comparator(self, expected_qualifier: str) -> Callable[str, bool]:
def get_simple_qualifier_comparator(self, expected_qualifier: str) -> Callable[[str], bool]:
"""Generate a method that compares if a given SAI qualifer matches `expected_qualifier`.
Args:
Expand All @@ -416,7 +416,7 @@ def _match_qualifier(sai_qualifier):

return _match_qualifier

def get_port_list_comparator(self, expected_ports: List[str]) -> Callable[str, bool]:
def get_port_list_comparator(self, expected_ports: List[str]) -> Callable[[str], bool]:
"""Generate a method that compares if a list of SAI ports matches the ports from `expected_ports`.
Args:
Expand All @@ -436,7 +436,7 @@ def _match_port_list(sai_port_list):

return _match_port_list

def get_acl_range_comparator(self, expected_type: str, expected_ports: str) -> Callable[str, bool]:
def get_acl_range_comparator(self, expected_type: str, expected_ports: str) -> Callable[[str], bool]:
"""Generate a method that compares if a SAI range object matches the range from `expected ports`.
Args:
Expand Down

0 comments on commit 03d33e7

Please sign in to comment.