mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 17:43:25 +08:00
Mark polib as complete (#9244)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user