Mark polib as complete (#9244)

This commit is contained in:
Nikita Sobolev
2022-11-22 13:18:49 +03:00
committed by GitHub
parent 0a5202222c
commit 3026610797
3 changed files with 6 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
import textwrap
from collections.abc import Callable
from typing import IO, Any, Generic, TypeVar, overload
from typing_extensions import SupportsIndex
@@ -39,7 +38,7 @@ class _BaseFile(list[_TB]):
def append(self, entry: _TB) -> None: ...
def insert(self, index: SupportsIndex, entry: _TB) -> None: ...
def metadata_as_entry(self) -> POEntry: ...
def save(self, fpath: str | None = ..., repr_method: str = ...) -> None: ...
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: bool = ...) -> _TB | None: ...
def ordered_metadata(self) -> list[tuple[str, str]]: ...
def to_binary(self) -> bytes: ...
@@ -79,6 +78,8 @@ class _BaseEntry:
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def __unicode__(self, wrapwidth: int = ...) -> str: ...
def __eq__(self, other: object) -> bool: ...
@property
def msgid_with_context(self) -> str: ...
class POEntry(_BaseEntry):
comment: str
@@ -152,7 +153,3 @@ class _MOFileParser(Generic[_TM]):
def __init__(self, mofile: str, *args: Any, **kwargs: Any) -> None: ...
def __del__(self) -> None: ...
def parse(self) -> _TM: ...
class TextWrapper(textwrap.TextWrapper):
drop_whitespace: bool
def __init__(self, *args: Any, **kwargs: Any) -> None: ...