File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ def cursor(self) -> cursor:
88
88
conn .close ()
89
89
90
90
def __enter__ (self : DatabaseJanitorType ) -> DatabaseJanitorType :
91
+ """
92
+ Sets a new : class : attrpc. database.
93
+
94
+ Args:
95
+ self: (todo): write your description
96
+ """
91
97
self .init ()
92
98
return self
93
99
@@ -96,4 +102,14 @@ def __exit__(
96
102
exc_type : Optional [Type [BaseException ]],
97
103
exc_val : Optional [BaseException ],
98
104
exc_tb : Optional [TracebackType ]) -> None :
105
+ """
106
+ Called when the exception is raised.
107
+
108
+ Args:
109
+ self: (todo): write your description
110
+ exc_type: (todo): write your description
111
+ Type: (todo): write your description
112
+ exc_val: (todo): write your description
113
+ exc_tb: (todo): write your description
114
+ """
99
115
self .drop ()
You can’t perform that action at this time.
0 commit comments