This commit is contained in:
khodowany
2026-10-04 17:14:13 -05:00
parent f234dd6d51
commit 68df7292ee
33 changed files with 990 additions and 1872 deletions
+2
View File
@@ -6,6 +6,7 @@ not a rhythmic boundary and must not be used to clip a group.
"""
from __future__ import annotations
import dataclasses
import functools
from fractions import Fraction as F
@@ -48,6 +49,7 @@ def describe(pattern, *, origin=F(), source='', imported=False):
return tuple(result)
@functools.lru_cache(maxsize=8192)
def valid(pattern):
try:describe(pattern);return True
except ValueError:return False