chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:17:40 +08:00
commit f1825c8ceb
10096 changed files with 2364182 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from collections.abc import Mapping
def row_str(row: Mapping) -> str:
"""Convert a row to string representation."""
return str(row.as_pydict())
def row_repr(row: Mapping) -> str:
"""Convert a row to repr representation."""
return str(row)
def row_repr_pretty(row: Mapping, p, cycle):
"""Pretty print a row."""
from IPython.lib.pretty import _dict_pprinter_factory
pprinter = _dict_pprinter_factory("{", "}")
return pprinter(row, p, cycle)