From 535736e421b7746849137167f11e89ce995e1839 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Thu, 6 Oct 2022 09:55:39 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/tools/lru.pyi | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/odoo-stubs/tools/lru.pyi b/odoo-stubs/tools/lru.pyi index 1e1cf98..66ba2ff 100644 --- a/odoo-stubs/tools/lru.pyi +++ b/odoo-stubs/tools/lru.pyi @@ -1,17 +1,19 @@ +from collections import OrderedDict +from threading import RLock from typing import Any -__all__: Any +__all__ = ['LRU'] class LRU: - _lock: Any - count: Any - d: Any - def __init__(self, count, pairs=...) -> None: ... - def __contains__(self, obj): ... + _lock: RLock + count: int + d: OrderedDict + def __init__(self, count: int, pairs: tuple[Any, Any] = ...) -> None: ... + def __contains__(self, obj) -> bool: ... def get(self, obj, val: Any | None = ...): ... def __getitem__(self, obj): ... def __setitem__(self, obj, val) -> None: ... def __delitem__(self, obj) -> None: ... - def __len__(self): ... + def __len__(self) -> int: ... def pop(self, key): ... def clear(self) -> None: ...