MCPcopy Index your code
hub / github.com/clips/pattern / dict_value

Function dict_value

pattern/web/pdf/pdftypes.py:131–137  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

129 return x
130
131def dict_value(x):
132 x = resolve1(x)
133 if not isinstance(x, dict):
134 if STRICT:
135 raise PDFTypeError('Dict required: %r' % x)
136 return {}
137 return x
138
139def stream_value(x):
140 x = resolve1(x)

Callers 14

load_trailerMethod · 0.90
__init__Method · 0.90
set_parserMethod · 0.90
searchMethod · 0.90
lookup_nameMethod · 0.90
lookupMethod · 0.90
get_destMethod · 0.90
do_keywordMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
get_fontMethod · 0.90

Calls 2

resolve1Function · 0.85
PDFTypeErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…