diff --git a/chia/cmds/check_wallet_db.py b/chia/cmds/check_wallet_db.py index 14fdcfb6fdbe..daae2194c816 100644 --- a/chia/cmds/check_wallet_db.py +++ b/chia/cmds/check_wallet_db.py @@ -206,7 +206,7 @@ def print_min_max_derivation_for_wallets(derivation_paths: List[DerivationPath]) class WalletDBReader: db_wrapper: DBWrapper2 # TODO: Remove db_wrapper member config = {"db_readers": 1} - sql_log_path = None + sql_log_path: Optional[Path] = None verbose = False async def get_all_wallets(self) -> List[Wallet]: diff --git a/chia/util/keyring_wrapper.py b/chia/util/keyring_wrapper.py index 0dbe5d05140e..0901d5a9e2b3 100644 --- a/chia/util/keyring_wrapper.py +++ b/chia/util/keyring_wrapper.py @@ -2,7 +2,7 @@ from pathlib import Path from sys import platform -from typing import Optional, Tuple, Union, overload +from typing import ClassVar, Optional, Tuple, Union, overload from keyring.backends.macOS import Keyring as MacKeyring from keyring.backends.Windows import WinVaultKeyring as WinKeyring @@ -63,8 +63,8 @@ class KeyringWrapper: """ # Static members - __shared_instance = None - __keys_root_path: Path = DEFAULT_KEYS_ROOT_PATH + __shared_instance: ClassVar[Optional[KeyringWrapper]] = None + __keys_root_path: ClassVar[Path] = DEFAULT_KEYS_ROOT_PATH # Instance members keys_root_path: Path