mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable local_partial_types (#118467)
When using dmypy, this setting is enabled and cannot be turned off. Force it for regular mypy too. Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/118467 Approved by: https://github.com/Skylion007 ghstack dependencies: #118414, #118418, #118432
This commit is contained in:
committed by
PyTorch MergeBot
parent
2ed0af2bde
commit
46712b019d
@ -9,14 +9,14 @@ import numbers
|
||||
import os
|
||||
import sys
|
||||
from datetime import timedelta
|
||||
from typing import Dict, Optional
|
||||
from typing import Dict, Optional, Callable, Iterator, Tuple
|
||||
|
||||
from torch.distributed import FileStore, PrefixStore, Store, TCPStore
|
||||
|
||||
from .constants import default_pg_timeout
|
||||
|
||||
|
||||
_rendezvous_handlers = {}
|
||||
_rendezvous_handlers: Dict[str, Callable[..., Iterator[Tuple[Store, int, int]]]] = {}
|
||||
|
||||
|
||||
def register_rendezvous_handler(scheme, handler):
|
||||
|
Reference in New Issue
Block a user