get_file_handle suffix is optional

This commit is contained in:
Philip Eisenlohr 2021-11-26 11:34:43 -05:00
parent 4ba7c9e670
commit 4d63da6aee
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ class Colormap(mpl.colors.ListedColormap):
def _get_file_handle(self,
fname: Union[TextIO, str, Path, None],
suffix: str) -> TextIO:
suffix: str = '') -> TextIO:
"""
Provide filehandle.
@ -270,7 +270,7 @@ class Colormap(mpl.colors.ListedColormap):
fname : file, str, pathlib.Path, or None
Filename or filehandle.
If None, colormap name + suffix.
suffix: str
suffix: str, optional
Extension to use for colormap filename.
Returns