bug: Fix bad type hinting on ABCMeta instead of type.

This commit is contained in:
UpstreamData
2023-05-23 09:36:50 -06:00
parent ecc76d09af
commit 0c563ef538
2 changed files with 1 additions and 9 deletions

View File

@@ -18,8 +18,7 @@ import asyncio
import ipaddress import ipaddress
import json import json
import logging import logging
from collections.abc import AsyncIterable from typing import AsyncIterable, List, Tuple, Union
from typing import List, Tuple, Union
import asyncssh import asyncssh
import httpx import httpx

View File

@@ -69,13 +69,6 @@ class NetworkTest(unittest.TestCase):
self.assertTrue(net_1 == correct_net) self.assertTrue(net_1 == correct_net)
self.assertTrue(net_2 == correct_net) self.assertTrue(net_2 == correct_net)
def test_net_len(self):
net = MinerNetwork("192.168.1.0", mask=32)
self.assertEqual(len(net), 1)
net2 = MinerNetwork("192.168.1.0", mask=31)
self.assertEqual(len(net2), 2)
def test_net_defaults(self): def test_net_defaults(self):
net = MinerNetwork() net = MinerNetwork()
net_obj = net.get_network() net_obj = net.get_network()