[BE][PYFMT] migrate PYFMT for torch.{distributed,distributions} to ruff format (#144547)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/144547
Approved by: https://github.com/kwen2501
This commit is contained in:
Xuehai Pan
2025-02-28 11:10:58 +08:00
committed by PyTorch MergeBot
parent 4e160d5fd9
commit 995df34b19
143 changed files with 920 additions and 774 deletions

View File

@ -151,12 +151,10 @@ class lazy_property(Generic[T, R]):
@overload
def __get__(
self, instance: None, obj_type: Any = None
) -> "_lazy_property_and_property[T, R]":
...
) -> "_lazy_property_and_property[T, R]": ...
@overload
def __get__(self, instance: T, obj_type: Any = None) -> R:
...
def __get__(self, instance: T, obj_type: Any = None) -> R: ...
def __get__(
self, instance: Union[T, None], obj_type: Any = None