MCPcopy
hub / github.com/pallets/click / format_pos

Method format_pos

src/click/_termui_impl.py:201–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 return ""
200
201 def format_pos(self) -> str:
202 pos = str(self.pos)
203 if self.length is not None:
204 pos += f"/{self.length}"
205 return pos
206
207 def format_pct(self) -> str:
208 return f"{int(self.pct * 100): 4}%"[1:]

Callers 2

format_progress_lineMethod · 0.95

Calls

no outgoing calls

Tested by 1