MCPcopy
hub / github.com/pandas-dev/pandas / is_an_exception_subclass

Method is_an_exception_subclass

scripts/validate_exception_location.py:57–58  ·  view source on GitHub ↗
(base_id: str)

Source from the content-addressed store, hash-verified

55
56 def visit_ClassDef(self, node) -> None:
57 def is_an_exception_subclass(base_id: str) -> bool:
58 return base_id == "Exception" or base_id.endswith(("Warning", "Error"))
59
60 exception_classes = []
61

Callers

nothing calls this directly

Calls 1

endswithMethod · 0.80

Tested by

no test coverage detected