summaryrefslogtreecommitdiff
path: root/templates/python/context.py
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-09-10 07:38:23 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2020-09-10 07:38:23 +0000
commit9d2aead2817ef2a7b96819a9d9574c75b9a3948c (patch)
tree9f7501bb2d947a8bf1efb358ddb542ccd63f2c9c /templates/python/context.py
parent1b6ea85c9b8425ca9dc553fb70ae3b161e877304 (diff)
parenta06c0e0f255358bf74e53aeaa4e9aa308e0a5f99 (diff)
downloadsubplot-9d2aead2817ef2a7b96819a9d9574c75b9a3948c.tar.gz
Merge branch 'repr' into 'main'
feat(python template): repr(Context) Closes #72 See merge request larswirzenius/subplot!64
Diffstat (limited to 'templates/python/context.py')
-rw-r--r--templates/python/context.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/python/context.py b/templates/python/context.py
index df86b02..8e89195 100644
--- a/templates/python/context.py
+++ b/templates/python/context.py
@@ -24,3 +24,6 @@ class Context:
def __delitem__(self, key):
del self._vars[key]
+
+ def __repr__(self):
+ return repr(self._vars)