#1715 - Added suppress-none-returning and suppress-dummy-args to .flake8 as flake8-annotations can get very annoying

This commit is contained in:
Chris McCarthy
2023-08-01 08:19:28 +01:00
parent c05cb62aa9
commit 557caeaac4
2 changed files with 6 additions and 4 deletions

View File

@@ -14,3 +14,5 @@ extend-ignore =
exclude = exclude =
docs/source/* docs/source/*
tests/* tests/*
suppress-none-returning=True
suppress-dummy-args=True

View File

@@ -156,7 +156,7 @@ class NIC(SimComponent):
""" """
pass pass
def send_frame(self, frame): def send_frame(self, frame: Any):
""" """
Send a network frame from the NIC to the connected link. Send a network frame from the NIC to the connected link.
@@ -165,7 +165,7 @@ class NIC(SimComponent):
""" """
pass pass
def receive_frame(self, frame): def receive_frame(self, frame: Any):
""" """
Receive a network frame from the connected link. Receive a network frame from the connected link.
@@ -228,7 +228,7 @@ class Link(SimComponent):
self.endpoint_a.connect_link(self) self.endpoint_a.connect_link(self)
self.endpoint_b.connect_link(self) self.endpoint_b.connect_link(self)
def send_frame(self, sender_nic: NIC, frame): def send_frame(self, sender_nic: NIC, frame: Any):
""" """
Send a network frame from one NIC to another connected NIC. Send a network frame from one NIC to another connected NIC.
@@ -239,7 +239,7 @@ class Link(SimComponent):
""" """
pass pass
def receive_frame(self, sender_nic: NIC, frame): def receive_frame(self, sender_nic: NIC, frame: Any):
""" """
Receive a network frame from a connected NIC. Receive a network frame from a connected NIC.