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 e5a01fd commit f41363aCopy full SHA for f41363a
src/textual/css/stylesheet.py
@@ -435,7 +435,7 @@ def _check_rule(
435
436
# pseudo classes which iterate over multiple nodes
437
# These shouldn't be used in a cache key
438
- EXCLUDE_PSEUDO_CLASSES = {
+ EXCLUDE_PSEUDO_CLASSES_FROM_CACHE = {
439
"first-of-type",
440
"last-of_type",
441
"odd",
@@ -488,7 +488,7 @@ def apply(
488
cache_key: tuple | None = None
489
490
if cache is not None and all_pseudo_classes.isdisjoint(
491
- self.EXCLUDE_PSEUDO_CLASSES
+ self.EXCLUDE_PSEUDO_CLASSES_FROM_CACHE
492
):
493
cache_key = (
494
node._parent,
0 commit comments