Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/graphviz/parameters/base.py: 57%
7 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:43 +0000
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:43 +0000
1"""Rendering parameter handling."""
3from .. import copying
5__all__ = ['ParameterBase']
8class ParameterBase(copying.CopyBase):
9 """Rendering parameter."""
11 def _getattr_from_dict(self, attrname: str, *, default=None):
12 """Return self.attrname if attrname is in the instance dictionary
13 (as oposed to on the type)."""
14 if attrname in self.__dict__:
15 return getattr(self, attrname)
16 return default