We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e33467 commit ab69392Copy full SHA for ab69392
1 file changed
pygmt/src/config.py
@@ -1,6 +1,8 @@
1
"""
2
config - set GMT defaults globally or locally.
3
4
+from inspect import Parameter, Signature
5
+
6
from pygmt.clib import Session
7
8
@@ -20,6 +22,15 @@ class config: # pylint: disable=invalid-name
20
22
Full GMT defaults list at :gmt-docs:`gmt.conf.html`
21
23
24
25
+ # Manually set the __signature__ attribute to enable tab autocompletion
26
+ _keywords = ["FONT_LABEL", "FONT_TAG", "FONT_TITLE"]
27
+ __signature__ = Signature(
28
+ parameters=[
29
+ Parameter(key, kind=Parameter.KEYWORD_ONLY, default=None)
30
+ for key in _keywords
31
+ ]
32
+ )
33
34
def __init__(self, **kwargs):
35
# Save values so that we can revert to their initial values
36
self.old_defaults = {}
0 commit comments