From 0f33b837aa3785d38d8e9b37553ecaa08b285dba Mon Sep 17 00:00:00 2001 From: Chris McCarthy Date: Tue, 1 Aug 2023 12:45:36 +0100 Subject: [PATCH] #1715 - Fixed up pr code suggestion flake8 issues --- src/primaite/simulator/network/physical_layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/primaite/simulator/network/physical_layer.py b/src/primaite/simulator/network/physical_layer.py index aab98dc0..20fae4c1 100644 --- a/src/primaite/simulator/network/physical_layer.py +++ b/src/primaite/simulator/network/physical_layer.py @@ -3,7 +3,7 @@ from __future__ import annotations import re import secrets from ipaddress import IPv4Address, IPv4Network -from typing import Any, Dict, List, Optional, Union +from typing import Any, Dict, List, Optional from primaite import getLogger from primaite.exceptions import NetworkError @@ -62,7 +62,7 @@ class NIC(SimComponent): "The IP address assigned to the NIC for communication on an IP-based network." subnet_mask: str "The subnet mask assigned to the NIC." - gateway: IPV4Address + gateway: IPv4Address "The default gateway IP address for forwarding network traffic to other networks. Randomly generated upon creation." mac_address: str = generate_mac_address() "The MAC address of the NIC. Defaults to a randomly set MAC address."