We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8852022 commit 05e34efCopy full SHA for 05e34ef
src/sage/misc/lazy_attribute.pyi
@@ -1,3 +1,9 @@
1
# This type-stub file helps pyright understand the decorator @lazy_attribute.
2
3
-lazy_attribute = property
+# Adapted from https://github.com/python/typeshed/blob/b9640005eb586afdbe0a57bac2b88a7a12465069/stdlib/builtins.pyi#L1237-L1254
4
+class lazy_attribute:
5
+ def __init__(
6
+ self,
7
+ f: Callable[[Any], Any] | None = ...
8
+ ) -> None: ...
9
+ def __get__(self, a: Any, cls: type) -> Any: ...
0 commit comments