get_file_handle suffix is optional
This commit is contained in:
parent
4ba7c9e670
commit
4d63da6aee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue