Closed alexrudd2 closed 4 months ago
FileHistory.filename is currently hinted as str.
FileHistory.filename
str
It is used by open() and os.path.exists(). os.path.exists() supports os.PathLike since 3.6
open()
os.path.exists()
os.PathLike
Therefore, the type hint should be expanded to Union[str, os.PathLike].
Union[str, os.PathLike]
Thanks!
FileHistory.filename
is currently hinted asstr
.It is used by
open()
andos.path.exists()
.os.path.exists()
supportsos.PathLike
since 3.6Therefore, the type hint should be expanded to
Union[str, os.PathLike]
.