mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
polib: fix ordered_metadata return type (#5735)
Also update version in METADATA.toml.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "0.1"
|
||||
version = "1.1"
|
||||
python2 = true
|
||||
|
||||
@@ -39,7 +39,7 @@ class _BaseFile(List[_TB]):
|
||||
def metadata_as_entry(self) -> POEntry: ...
|
||||
def save(self, fpath: Optional[Text] = ..., repr_method: str = ...) -> None: ...
|
||||
def find(self, st: Text, by: str = ..., include_obsolete_entries: bool = ..., msgctxt: bool = ...) -> Optional[_TB]: ...
|
||||
def ordered_metadata(self) -> List[Text]: ...
|
||||
def ordered_metadata(self) -> list[tuple[Text, Text]]: ...
|
||||
def to_binary(self) -> bytes: ...
|
||||
|
||||
class POFile(_BaseFile[POEntry]):
|
||||
|
||||
Reference in New Issue
Block a user