Skip to content

Commit 56ef7a0

Browse files
committed
small cache
1 parent caa43f0 commit 56ef7a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/textual/css/parse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
RE_IDENTIFIER = re.compile(r"\#" + IDENTIFIER)
4444

4545

46+
@lru_cache(maxsize=128)
4647
def is_id_selector(selector: str) -> bool:
4748
"""Is the selector an ID selector, i.e. "#foo"?
4849

0 commit comments

Comments
 (0)