Skip to content

Commit 322dcf7

Browse files
committed
Fix type hints
1 parent caa23c5 commit 322dcf7

File tree

19 files changed

+19
-19
lines changed

19 files changed

+19
-19
lines changed

pygmt/src/basemap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
def basemap(
2626
self,
2727
projection: str | None = None,
28-
frame: str | Sequence[str] | bool | None = None,
28+
frame: str | Sequence[str] | bool = False,
2929
region: Sequence[float | str] | str | None = None,
3030
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
3131
| bool = False,

pygmt/src/coast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def coast(
4141
] = None,
4242
box: Box | bool = False,
4343
projection: str | None = None,
44-
frame: str | Sequence[str] | bool | None = None,
44+
frame: str | Sequence[str] | bool = False,
4545
region: Sequence[float | str] | str | None = None,
4646
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
4747
| bool = False,

pygmt/src/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def colorbar(
3030
self,
3131
projection: str | None = None,
3232
box: Box | bool = False,
33-
frame: str | Sequence[str] | bool | None = None,
33+
frame: str | Sequence[str] | bool = False,
3434
region: Sequence[float | str] | str | None = None,
3535
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
3636
| bool = False,

pygmt/src/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def contour( # noqa: PLR0913
4343
z=None,
4444
no_clip: bool = False,
4545
projection: str | None = None,
46-
frame: str | Sequence[str] | bool | None = None,
46+
frame: str | Sequence[str] | bool = False,
4747
region: Sequence[float | str] | str | None = None,
4848
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
4949
| bool = False,

pygmt/src/grdcontour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def grdcontour(
4040
self,
4141
grid: PathLike | xr.DataArray,
4242
projection: str | None = None,
43-
frame: str | Sequence[str] | bool | None = None,
43+
frame: str | Sequence[str] | bool = False,
4444
region: Sequence[float | str] | str | None = None,
4545
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
4646
| bool = False,

pygmt/src/grdimage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def grdimage( # noqa: PLR0913
3333
monochrome: bool = False,
3434
no_clip: bool = False,
3535
projection: str | None = None,
36-
frame: str | Sequence[str] | bool | None = None,
36+
frame: str | Sequence[str] | bool = False,
3737
region: Sequence[float | str] | str | None = None,
3838
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
3939
| bool = False,

pygmt/src/grdview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def grdview(
3535
self,
3636
grid: PathLike | xr.DataArray,
3737
projection: str | None = None,
38-
frame: str | Sequence[str] | bool | None = None,
38+
frame: str | Sequence[str] | bool = False,
3939
region: Sequence[float | str] | str | None = None,
4040
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
4141
| bool = False,

pygmt/src/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def histogram(
4040
self,
4141
data: PathLike | TableLike,
4242
projection: str | None = None,
43-
frame: str | Sequence[str] | bool | None = None,
43+
frame: str | Sequence[str] | bool = False,
4444
region: Sequence[float | str] | str | None = None,
4545
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
4646
| bool = False,

pygmt/src/meca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def meca( # noqa: PLR0913
142142
event_name: str | Sequence[str] | None = None,
143143
no_clip: bool = False,
144144
projection: str | None = None,
145-
frame: str | Sequence[str] | bool | None = None,
145+
frame: str | Sequence[str] | bool = False,
146146
region: Sequence[float | str] | str | None = None,
147147
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
148148
| bool = False,

pygmt/src/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def plot( # noqa: PLR0912, PLR0913
5656
direction=None,
5757
straight_line: bool | Literal["x", "y"] = False,
5858
projection: str | None = None,
59-
frame: str | Sequence[str] | bool | None = None,
59+
frame: str | Sequence[str] | bool = False,
6060
region: Sequence[float | str] | str | None = None,
6161
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
6262
| bool = False,

0 commit comments

Comments
 (0)