Skip to content
Snippets Groups Projects

Resolve "release v1.2.0"

Merged Ghost User requested to merge release_v1.2.0 into master
2 files
+ 56
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -65,7 +65,7 @@ class CorrectScope:
return self.wrapper(*args, **kwargs)
def __get__(self, instance, cls):
"""Create bound method object and supply self argument to the decorated method."""
"""Create bound method object and supply self argument to the decorated method. <Python Cookbook, p.347>"""
return types.MethodType(self, instance)
@staticmethod
@@ -101,6 +101,7 @@ class CorrectScope:
class TrackParameter:
"""Hint: Tracking is not working for static methods."""
def __init__(self, func):
"""Construct decorator."""
@@ -114,7 +115,7 @@ class TrackParameter:
return self.__wrapped__(*args, **kwargs)
def __get__(self, instance, cls):
"""Create bound method object and supply self argument to the decorated method."""
"""Create bound method object and supply self argument to the decorated method. <Python Cookbook, p.347>"""
return types.MethodType(self, instance)
def track(self, tracker_obj, *args):
@@ -312,7 +313,7 @@ class DataStoreByVariable(AbstractDataStore):
if name not in self._store.keys():
self._store[name] = {}
self._store[name][scope] = obj
if log:
if log: # pragma: no cover
logging.debug(f"set: {name}({scope})={obj}")
@CorrectScope
@@ -463,7 +464,7 @@ class DataStoreByScope(AbstractDataStore):
if scope not in self._store.keys():
self._store[scope] = {}
self._store[scope][name] = obj
if log:
if log: # pragma: no cover
logging.debug(f"set: {name}({scope})={obj}")
@CorrectScope
Loading