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:
Eric Traut
2021-02-25 16:09:58 -07:00
committed by GitHub
parent bf583da275
commit 4b4ced5fa0
16 changed files with 62 additions and 62 deletions

View File

@@ -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]