MCPcopy Create free account
hub / github.com/ezyang/ghstack / _maybe_rstrip

Method _maybe_rstrip

src/ghstack/shell.py:229–233  ·  view source on GitHub ↗
(self, s: _SHELL_RET)

Source from the content-addressed store, hash-verified

227 return None
228
229 def _maybe_rstrip(self, s: _SHELL_RET) -> _SHELL_RET:
230 if isinstance(s, str):
231 return s.rstrip()
232 else:
233 return s
234
235 @overload # noqa: F811
236 def git(self, *args: str) -> str: ...

Callers 3

gitMethod · 0.95
hgMethod · 0.95
jfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected