MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/testing/_private/utils.py:2078–2086  ·  view source on GitHub ↗
(self, forwarding_rule="always")

Source from the content-addressed store, hash-verified

2076 pass
2077 """
2078 def __init__(self, forwarding_rule="always"):
2079 self._entered = False
2080
2081 # Suppressions are either instance or defined inside one with block:
2082 self._suppressions = []
2083
2084 if forwarding_rule not in {"always", "module", "once", "location"}:
2085 raise ValueError("unsupported forwarding rule.")
2086 self._forwarding_rule = forwarding_rule
2087
2088 def _clear_registries(self):
2089 if hasattr(warnings, "_filters_mutated"):

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected