Skip to content

Commit

Permalink
Allow PathLike in polib.pofile()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aciek authored Jan 13, 2025
1 parent 38d2fe8 commit f085806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/polib/polib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

Check failure on line 14 in stubs/polib/polib.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.12)

"PathLike" is not defined (reportUndefinedVariable)
@overload
def pofile(pofile: str, **kwargs: Any) -> POFile: ...
def pofile(pofile: str | PathLike, **kwargs: Any) -> POFile: ...

Check failure on line 16 in stubs/polib/polib.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.12)

"PathLike" is not defined (reportUndefinedVariable)
@overload
def mofile(mofile: str, *, klass: type[_TM], **kwargs: Any) -> _TM: ...
@overload
Expand Down

0 comments on commit f085806

Please sign in to comment.