Skip to content

Commit c8db1d6

Browse files
committed
typing
1 parent 1d08b1d commit c8db1d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/textual/css/stylesheet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from itertools import chain
66
from operator import itemgetter
77
from pathlib import Path, PurePath
8-
from typing import Iterable, NamedTuple, Sequence, cast
8+
from typing import Final, Iterable, NamedTuple, Sequence, cast
99

1010
import rich.repr
1111
from rich.console import Console, ConsoleOptions, RenderableType, RenderResult
@@ -435,7 +435,7 @@ def _check_rule(
435435

436436
# pseudo classes which iterate over multiple nodes
437437
# These shouldn't be used in a cache key
438-
EXCLUDE_PSEUDO_CLASSES_FROM_CACHE = {
438+
_EXCLUDE_PSEUDO_CLASSES_FROM_CACHE: Final[set[str]] = {
439439
"first-of-type",
440440
"last-of_type",
441441
"odd",
@@ -488,7 +488,7 @@ def apply(
488488
cache_key: tuple | None = None
489489

490490
if cache is not None and all_pseudo_classes.isdisjoint(
491-
self.EXCLUDE_PSEUDO_CLASSES_FROM_CACHE
491+
self._EXCLUDE_PSEUDO_CLASSES_FROM_CACHE
492492
):
493493
cache_key = (
494494
node._parent,

0 commit comments

Comments
 (0)