mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
refactor(gns3server,tests): StrEnum, ASYNC109 and others
This commit is contained in:
54 files changed
+195
-165
No files matched your search
@@ -38,7 +38,7 @@ class NotificationQueue(asyncio.Queue):
|
||||
self._first = True
|
||||
self._last_ping = None
|
||||
|
||||
async def get(self, timeout):
|
||||
async def get(self, timeout): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
"""
|
||||
Return a notification, or a ping notification with server information
|
||||
at least every `timeout` seconds. The ping used to be generated only
|
||||
@@ -84,7 +84,7 @@ class NotificationQueue(asyncio.Queue):
|
||||
log.warning(f"Could not get CPU and memory usage from psutil: {e}")
|
||||
return msg
|
||||
|
||||
async def get_json(self, timeout):
|
||||
async def get_json(self, timeout): # noqa: ASYNC109 - operation-specific timeout is intentional
|
||||
"""
|
||||
Get a message as a JSON
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user