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

Class TemplateObjectGetter

tools/npy_tempita/__init__.py:598–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596
597
598class TemplateObjectGetter:
599
600 def __init__(self, template_obj):
601 self.__template_obj = template_obj
602
603 def __getattr__(self, attr):
604 return getattr(self.__template_obj, attr, Empty)
605
606 def __repr__(self):
607 return '<%s around %r>' % (
608 self.__class__.__name__, self.__template_obj)
609
610
611class _Empty:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected