MCPcopy Create free account
hub / github.com/rthalley/dnspython / force

Function force

dns/_features.py:77–83  ·  view source on GitHub ↗

Force the status of *feature* to be *enabled*. This method is provided as a workaround for any cases where importlib.metadata is ineffective, or for testing.

(feature: str, enabled: bool)

Source from the content-addressed store, hash-verified

75
76
77def force(feature: str, enabled: bool) -> None:
78 """Force the status of *feature* to be *enabled*.
79
80 This method is provided as a workaround for any cases
81 where importlib.metadata is ineffective, or for testing.
82 """
83 _cache[feature] = enabled
84
85
86_requirements: Dict[str, List[str]] = {

Callers 1

test_forceFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_forceFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…