Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions stubs/polib/polib.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from _typeshed import StrOrBytesPath
from collections.abc import Callable
from pathlib import Path
from typing import IO, Any, Generic, Literal, SupportsIndex, TypeVar, overload
Expand Down Expand Up @@ -26,7 +27,7 @@ def escape(st: str) -> str: ...
def unescape(st: str) -> str: ...

class _BaseFile(list[_TB]):
fpath: str
fpath: StrOrBytesPath | None
wrapwidth: int
encoding: str
check_for_duplicates: bool
Expand All @@ -42,7 +43,7 @@ class _BaseFile(list[_TB]):
def metadata_as_entry(self) -> POEntry: ...
def save(self, fpath: str | None = ..., repr_method: str = ..., newline: str | None = ...) -> None: ...
def find(
self, st: str, by: str = ..., include_obsolete_entries: bool = ..., msgctxt: str | Literal[False] = ...
self, st: str, by: str = ..., include_obsolete_entries: bool = ..., msgctxt: str | Literal[False] | None = ...
) -> _TB | None: ...
def ordered_metadata(self) -> list[tuple[str, str]]: ...
def to_binary(self) -> bytes: ...
Expand Down Expand Up @@ -76,7 +77,7 @@ class _BaseEntry:
msgstr: str
msgid_plural: str
msgstr_plural: dict[int, str]
msgctxt: str
msgctxt: str | None
obsolete: bool
encoding: str
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
Expand Down
Loading