Skip to content

chore: add 11 return type hints in cli.py#854

Merged
thewhaleking merged 2 commits intoopentensor:stagingfrom
travellingsoldier85:auto-improve/type_hint/34d26e-202603150900
Mar 16, 2026
Merged

chore: add 11 return type hints in cli.py#854
thewhaleking merged 2 commits intoopentensor:stagingfrom
travellingsoldier85:auto-improve/type_hint/34d26e-202603150900

Conversation

@travellingsoldier85
Copy link

Summary

Added return type hints to functions in bittensor_cli/cli.py.

Changes

  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function
  • Add return type hint -> None to function

Type of Change

  • Code quality improvement (type hints)
  • Bug fix
  • New feature

Adding type hints improves IDE support, catches bugs earlier, and makes the codebase more maintainable.
No functional changes — only type annotations added.

Comment on lines +644 to +645
def config_selector(conf: dict, title: str) -> None:
def curses_selector(stdscr) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither of these returns None.

@thewhaleking thewhaleking changed the base branch from main to staging March 16, 2026 13:49
@thewhaleking thewhaleking force-pushed the auto-improve/type_hint/34d26e-202603150900 branch from 41da070 to 521bc92 Compare March 16, 2026 13:55
@thewhaleking thewhaleking merged commit 1f0332b into opentensor:staging Mar 16, 2026
88 checks passed
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.

3 participants