Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few missing type annotations #17043

Merged
merged 4 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chia/cmds/check_wallet_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
6 changes: 3 additions & 3 deletions chia/util/keyring_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down