We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4b369 commit 9eb95faCopy full SHA for 9eb95fa
pygmt/params/base.py
@@ -3,7 +3,10 @@
3
"""
4
5
6
-class BaseParam:
+from abc import ABC, abstractmethod, abstractproperty
7
+
8
9
+class BaseParam(ABC):
10
11
Base class for parameters in PyGMT.
12
@@ -58,6 +61,7 @@ def __post_init__(self):
58
61
59
62
self._validate()
60
63
64
+ @abstractmethod
65
def _validate(self):
66
67
Validate the parameters of the object.
@@ -66,7 +70,7 @@ def _validate(self):
70
validation on the parameters.
71
68
72
69
- @property
73
+ @abstractproperty
74
def _aliases(self):
75
76
List of Alias objects representing the parameters of this class.
0 commit comments