From a1e85be4c980d9fd59b479a7cde9453e6b3e7108 Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Wed, 13 Dec 2017 19:20:47 +0300 Subject: [PATCH] Add `__int__` to `uuid.UUID` (#1783) --- stdlib/2and3/uuid.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/2and3/uuid.pyi b/stdlib/2and3/uuid.pyi index f05ccf0c8..354371a7c 100644 --- a/stdlib/2and3/uuid.pyi +++ b/stdlib/2and3/uuid.pyi @@ -47,6 +47,8 @@ class UUID: @property def version(self) -> Optional[_Int]: ... + def __int__(self) -> _Int: ... + if sys.version_info >= (3,): def __eq__(self, other: Any) -> bool: ... def __lt__(self, other: Any) -> bool: ...