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

Method format_pct

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

Source from the content-addressed store, hash-verified

205 return pos
206
207 def format_pct(self) -> str:
208 return f"{int(self.pct * 100): 4}%"[1:]
209
210 def format_bar(self) -> str:
211 if self.length is not None:

Calls

no outgoing calls