From d6294cd9c949574f491923e12c656fc29ef8170b Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Mon, 21 Feb 2022 17:09:05 -0800 Subject: [PATCH] uuid: mark setattr --- stdlib/uuid.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/uuid.pyi b/stdlib/uuid.pyi index 4d46e89beddd..b0a3b8cbefb5 100644 --- a/stdlib/uuid.pyi +++ b/stdlib/uuid.pyi @@ -1,4 +1,5 @@ import sys +from typing import Any, NoReturn # Because UUID has properties called int and bytes we need to rename these temporarily. _Int = int @@ -77,6 +78,7 @@ class UUID: def __le__(self, other: UUID) -> bool: ... def __gt__(self, other: UUID) -> bool: ... def __ge__(self, other: UUID) -> bool: ... + def __setattr__(self, name: str, value: Any) -> NoReturn: ... def getnode() -> int: ... def uuid1(node: _Int | None = ..., clock_seq: _Int | None = ...) -> UUID: ...