MCPcopy
hub / github.com/psycopg/psycopg / example

Method example

tests/fix_faker.py:300–306  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

298 return self.get_maker(spec)(spec)
299
300 def example(self, spec):
301 # A good representative of the object - no degenerate case
302 cls = spec if isinstance(spec, type) else spec[0]
303 if meth := self._get_method("example", cls):
304 return meth(spec)
305 else:
306 return self.make(spec)
307
308 def match_any(self, spec, got, want):
309 assert got == want

Callers 2

make_recordMethod · 0.95
example_listMethod · 0.95

Calls 2

_get_methodMethod · 0.95
makeMethod · 0.95

Tested by

no test coverage detected