Skip to content

Commit cd5155b

Browse files
fmt
1 parent cbcd3b1 commit cd5155b

File tree

1 file changed

+2
-0
lines changed
  • snakemake_interface_software_deployment_plugins

1 file changed

+2
-0
lines changed

snakemake_interface_software_deployment_plugins/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ def once(self, func):
5858
"""Decorator to cache the result of a method call that shall be only
5959
executed once per combination of plugin and "within" environment.
6060
"""
61+
6162
def wrapper(self, *args, **kwargs):
6263
key = (self.__class__, self.within)
6364
if key in self._cache:
6465
return self._cache[key]
6566
value = func(*args, **kwargs)
6667
self._cache[key] = value
6768
return value
69+
6870
return wrapper
6971

7072
@abstractmethod

0 commit comments

Comments
 (0)