Skip to content

Comments

Cleanup type annotations and linting for Authmanager#487

Open
adenwuts wants to merge 3 commits intodeluge-torrent:developfrom
adenwuts:fix/cleanup-authmanager
Open

Cleanup type annotations and linting for Authmanager#487
adenwuts wants to merge 3 commits intodeluge-torrent:developfrom
adenwuts:fix/cleanup-authmanager

Conversation

@adenwuts
Copy link

@adenwuts adenwuts commented Aug 25, 2025

Adds better type annotations to authmanager for easier extension/development/maintenance. Also cleaned up a few implicit string concatenations used in logging and added override flags where appropriate.

Hoping to use this as a basis for integrating an automated upgrade path for plaintext passwords-->hashes as disccussed in #484.

No functional changes, all tests still passing.

@adenwuts
Copy link
Author

Tested with wrong Python version 😢
I'll fix this up later today.

@adenwuts
Copy link
Author

tests now passing using python3.9

flound1129 added a commit to flound1129/deluge that referenced this pull request Feb 21, 2026
…nd common

Applies type annotations from upstream PR deluge-torrent#487:
- Account: annotate __init__ params/fields, data() and __repr__ return types
- AuthManager: annotate all method signatures and __auth dict type
- configmanager.get_config_dir and common.get_default_config_dir signatures
- common.create_localclient_account return type
- Join multi-line log strings for clarity
- Assign discarded return values to _ to satisfy type checkers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant