mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Lintrunner: Run mypy-strict on torchgen (#82576)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82576 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
9f0fccadd7
commit
afafd16671
@ -2,7 +2,7 @@ import json
|
||||
import logging
|
||||
|
||||
import math
|
||||
from typing import List, Optional, Sequence, Tuple, Union
|
||||
from typing import Dict, List, Optional, Sequence, Tuple, Union
|
||||
|
||||
import torchgen.api.cpp as cpp
|
||||
from torchgen.context import native_function_manager
|
||||
@ -21,7 +21,7 @@ from torchgen.model import (
|
||||
)
|
||||
from torchgen.static_runtime import config
|
||||
|
||||
logger: logger = logging.getLogger()
|
||||
logger: logging.Logger = logging.getLogger()
|
||||
|
||||
|
||||
def has_alias(
|
||||
@ -229,7 +229,7 @@ def test_tensor_dim(op_name: str) -> int:
|
||||
|
||||
|
||||
test_tensor_shapes_string = '{"view_as_complex": "{2, 2}"}'
|
||||
test_tensor_shape_json = json.loads(test_tensor_shapes_string)
|
||||
test_tensor_shape_json: Dict[str, str] = json.loads(test_tensor_shapes_string)
|
||||
|
||||
|
||||
def test_tensor_shape(op_name: str) -> str:
|
||||
|
Reference in New Issue
Block a user