modal.FilePatternMatcher
class FilePatternMatcher(modal.file_pattern_matcher._AbstractPatternMatcher)
Allows matching file paths against a list of patterns.
def __init__(self, *pattern: str) -> None:
Initialize a new FilePatternMatcher instance.
Args: pattern (str): One or more pattern strings.
Raises: ValueError: If an illegal exclusion pattern is provided.
with_repr
def with_repr(self, custom_repr) -> "_AbstractPatternMatcher":
# use to give an instance of a matcher a custom name - useful for visualizing default values in signatures