(s: str | bytes, encoding: str = "utf-8")
| 7 | |
| 8 | # vestigal things from IPython_genutils. |
| 9 | def cast_unicode(s: str | bytes, encoding: str = "utf-8") -> str: |
| 10 | if isinstance(s, bytes): |
| 11 | return s.decode(encoding, "replace") |
| 12 | return s |
| 13 | |
| 14 | |
| 15 | def filefind(filename: str, path_dirs: Sequence[str] | None = None) -> str: |
no outgoing calls
searching dependent graphs…