We can't use self without an instance

This commit is contained in:
tcely authored and GitHub committed 2025-02-07 03:06:21 -05:00
1 parent 3b14e03842
commit 08842752d4
1 file changed
+2 -2
+2 -2
View File
@@ -13,7 +13,7 @@ class ProgressHookStatus:
))
def valid_status(status):
return status in self.valid
return status in ProgressHookStatus.valid
def get(key):
return progress_hook['status'].get(key, None)
@@ -46,7 +46,7 @@ class PPHookStatus:
))
def valid_status(status):
return status in self.valid
return status in PPHookStatus.valid
def get(key):
return postprocessor_hook['status'].get(key, None)