Change typehints after mypy analysis

This commit is contained in:
Marek Wolan
2023-07-17 16:22:07 +01:00
parent ef8f6de646
commit 4032f3a2a8
6 changed files with 14 additions and 12 deletions

View File

@@ -175,6 +175,7 @@ class HardCodedACLAgent(HardCodedAgentSessionABC):
if protocol != "ANY":
protocol = services_list[protocol - 1] # -1 as dont have to account for ANY in list of services
# TODO: This should throw an error because protocol is a string
matching_rules = acl.get_relevant_rules(source_node_address, dest_node_address, protocol, port)
return matching_rules