[housekeeping] Upgrade # type Python 2 syntax

cc @sshleifer
This commit is contained in:
Julien Chaumond
2020-04-23 10:39:24 -04:00
parent cb3c2212c7
commit a946b6b51b
2 changed files with 7 additions and 7 deletions

View File

@@ -52,8 +52,8 @@ class PretrainedConfig(object):
torchscript (:obj:`bool`, `optional`, defaults to :obj:`False`):
Is the model used with Torchscript (for PyTorch models).
"""
pretrained_config_archive_map = {} # type: Dict[str, str]
model_type = "" # type: str
pretrained_config_archive_map: Dict[str, str] = {}
model_type: str = ""
def __init__(self, **kwargs):
# Attributes with defaults