MCPcopy Index your code
hub / github.com/pydata/xarray / format_record

Function format_record

xarray/tests/__init__.py:310–312  ·  view source on GitHub ↗

Format warning record like `FutureWarning('Function will be deprecated...')`

(record)

Source from the content-addressed store, hash-verified

308
309
310def format_record(record) -> str:
311 """Format warning record like `FutureWarning('Function will be deprecated...')`"""
312 return f"{str(record.category)[8:-2]}('{record.message}'))"
313
314
315@contextmanager

Callers 1

assert_no_warningsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…