Skip to content

Commit 6f7d261

Browse files
committed
Autocompletion of parameter in vscode
1 parent a0eeca4 commit 6f7d261

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

pygmt/src/basemap.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,29 @@
22
basemap - Plot base maps and frames for the figure.
33
"""
44

5+
from typing import Any, TypedDict, Unpack
6+
57
from pygmt.clib import Session
68
from pygmt.helpers import build_arg_string, fmt_docstring, kwargs_to_strings, use_alias
79

810

11+
class Parameters(TypedDict):
12+
region: Any
13+
projection: Any
14+
zscale: Any
15+
zsize: Any
16+
frame: Any
17+
map_scale: Any
18+
box: Any
19+
rose: Any
20+
compass: Any
21+
verbose: bool
22+
panel: Any
23+
coltypes: Any
24+
perspective: Any
25+
transparency: Any
26+
27+
928
@fmt_docstring
1029
@use_alias(
1130
R="region",
@@ -24,7 +43,7 @@
2443
t="transparency",
2544
)
2645
@kwargs_to_strings(R="sequence", c="sequence_comma", p="sequence")
27-
def basemap(self, **kwargs):
46+
def basemap(self, **kwargs: Unpack[Parameters]):
2847
r"""
2948
Plot base maps and frames for the figure.
3049

0 commit comments

Comments
 (0)