diff --git a/stubs/polib/polib.pyi b/stubs/polib/polib.pyi index 0788fe8ca3b4..fa7061f1f6ab 100644 --- a/stubs/polib/polib.pyi +++ b/stubs/polib/polib.pyi @@ -1,4 +1,5 @@ from collections.abc import Callable +from pathlib import Path from typing import IO, Any, Generic, Literal, SupportsIndex, TypeVar, overload _TB = TypeVar("_TB", bound=_BaseEntry) @@ -11,9 +12,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 | Path, *, klass: type[_TP], **kwargs: Any) -> _TP: ... @overload -def pofile(pofile: str, **kwargs: Any) -> POFile: ... +def pofile(pofile: str | Path, **kwargs: Any) -> POFile: ... @overload def mofile(mofile: str, *, klass: type[_TM], **kwargs: Any) -> _TM: ... @overload