Commit 6690acf7 authored by Radosław Masłowski's avatar Radosław Masłowski
Browse files

Apply remaining PY layer code review fixes

This commit includes various improvements from code review:

- ShowBalances: Add account existence check before fetching data
- ShowAccounts: Use tuple instead of list for accounts
- ShowWitnesses: Add docstring, use tuple, update votes mapping
- ShowAuthority: Add VALID_AUTHORITIES constant, add validation, use tuple
- ShowInterface: Use composition instead of inheritance (LSP fix),
  access world via property instead of _world
- Exceptions: Improve InvalidAccountNameError with description parameter,
  add max bounds for page number and page size validators
- Validators: Add MAX bounds, fix bool check for int validation
- WitnessData: Add votes_raw attribute for raw vote count
- Add functional tests for exceptions and validators

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude Opus 4.5 <noreply@anthropic.com>
parent f94f9a74
Loading
Loading
Loading