mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 11:07:17 +08:00
Added missing type annotations and type arguments (#5070)
Co-authored-by: Eric Traut <erictr@microsoft.com> Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ class _BaseFile(List[_TB]):
|
||||
def ordered_metadata(self) -> List[Text]: ...
|
||||
def to_binary(self) -> bytes: ...
|
||||
|
||||
class POFile(_BaseFile):
|
||||
class POFile(_BaseFile[POEntry]):
|
||||
def __unicode__(self) -> Text: ...
|
||||
def save_as_mofile(self, fpath: Text) -> None: ...
|
||||
def percent_translated(self) -> int: ...
|
||||
@@ -52,7 +52,7 @@ class POFile(_BaseFile):
|
||||
def obsolete_entries(self) -> List[POEntry]: ...
|
||||
def merge(self, refpot: POFile) -> None: ...
|
||||
|
||||
class MOFile(_BaseFile):
|
||||
class MOFile(_BaseFile[MOEntry]):
|
||||
MAGIC: int
|
||||
MAGIC_SWAPPED: int
|
||||
magic_number: Optional[int]
|
||||
|
||||
Reference in New Issue
Block a user