Skip to content

Commit d162a61

Browse files
committed
Make is_publication_approved an abstract method
1 parent 223cb2c commit d162a61

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/hermes/commands/curate/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# SPDX-FileContributor: Michael Meinel
66
# SPDX-FileContributor: David Pape
77

8+
from abc import abstractmethod
89
import argparse
910
import json
1011
import sys
@@ -70,13 +71,14 @@ def create_report(self):
7071
"""
7172
pass
7273

74+
@abstractmethod
7375
def is_publication_approved(self) -> bool:
7476
"""Return the publication decision made through the curation process.
7577
76-
If publication is allowed, this method must return ``True``. By default,
77-
``False`` is returned.
78+
If publication is allowed, this method must return ``True``, otherwise
79+
``False``.
7880
"""
79-
return False
81+
pass
8082

8183
def process_decision_positive(self):
8284
"""Process a positive curation decision.

0 commit comments

Comments
 (0)