Format star count to human readable string.
(count: int)
| 17 | |
| 18 | |
| 19 | def format_stars(count: int) -> str: |
| 20 | """Format star count to human readable string.""" |
| 21 | if count >= 1000: |
| 22 | return f"{count / 1000:.1f}k".replace(".0k", "k") |
| 23 | return str(count) |
| 24 | |
| 25 | |
| 26 | def get_github_stars() -> int: |
no outgoing calls
no test coverage detected