diff --git a/stubs/polib/polib.pyi b/stubs/polib/polib.pyi index 0788fe8ca3b4..4db1d53f556a 100644 --- a/stubs/polib/polib.pyi +++ b/stubs/polib/polib.pyi @@ -11,9 +11,9 @@ default_encoding: str # encoding: str # check_for_duplicates: bool @overload -def pofile(pofile: str, *, klass: type[_TP], **kwargs: Any) -> _TP: ... +def pofile(pofile: str | PathLike, *, klass: type[_TP], **kwargs: Any) -> _TP: ... @overload -def pofile(pofile: str, **kwargs: Any) -> POFile: ... +def pofile(pofile: str | PathLike, **kwargs: Any) -> POFile: ... @overload def mofile(mofile: str, *, klass: type[_TM], **kwargs: Any) -> _TM: ... @overload