mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
4e160d5fd9
commit
995df34b19
@ -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
|
||||
|
Reference in New Issue
Block a user