Fix linter errors

This commit is contained in:
Sumner Evans
2020-01-19 09:02:02 -07:00
parent 9a9f7672e3
commit 2a4d97671c
7 changed files with 20 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ from functools import lru_cache
from collections import defaultdict
from time import sleep
from concurrent.futures import ThreadPoolExecutor, Future, as_completed
from concurrent.futures import ThreadPoolExecutor, Future
from enum import EnumMeta, Enum
from datetime import datetime
from pathlib import Path
@@ -232,7 +232,7 @@ class CacheManager(metaclass=Singleton):
print('Shutdown complete')
@staticmethod
def calculate_server_hash(server: ServerConfiguration):
def calculate_server_hash(server: Optional[ServerConfiguration]):
if server is None:
return None
server_info = (server.name + server.server_address + server.username)