Selaa lähdekoodia

Permit to reset hapic context

Bastien Sevajol 7 vuotta sitten
vanhempi
commit
b3b215130c
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      hapic/hapic.py

+ 3 - 0
hapic/hapic.py Näytä tiedosto

@@ -78,6 +78,9 @@ class Hapic(object):
78 78
         assert not self._context
79 79
         self._context = context
80 80
 
81
+    def reset_context(self) -> None:
82
+        self._context = None
83
+
81 84
     def with_api_doc(self):
82 85
         def decorator(func):
83 86
             @functools.wraps(func)