MCPcopy Create free account
hub / github.com/davda54/sam / __init__

Method __init__

example/utility/loading_bar.py:2–4  ·  view source on GitHub ↗
(self, length: int = 40)

Source from the content-addressed store, hash-verified

1class LoadingBar:
2 def __init__(self, length: int = 40):
3 self.length = length
4 self.symbols = ['┈', '░', '▒', '▓']
5
6 def __call__(self, progress: float) -> str:
7 p = int(progress * self.length*4 + 0.5)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected