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 bc96aac commit a5ce9bbCopy full SHA for a5ce9bb
src/textual/_compat.py
@@ -6,6 +6,13 @@
6
if sys.version_info >= (3, 12):
7
from functools import cached_property
8
else:
9
+ # based on the code from Python 3.14:
10
+ # https://github.com/python/cpython/blob/
11
+ # 5507eff19c757a908a2ff29dfe423e35595fda00/Lib/functools.py#L1089-L1138
12
+ # Copyright (C) 2006 Python Software Foundation.
13
+ # vendored under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 because
14
+ # prior to Python 3.12 cached_property used a threading.Lock, which makes
15
+ # it very slow.
16
_T_co = TypeVar("_T_co", covariant=True)
17
_NOT_FOUND = object()
18
0 commit comments