glob(
self,
pattern: str,
path: str | None = None,
) -> GlobResultReturn files matching pattern (path unused — flat namespace).
Matching uses the shared backend contract (compile_grep_include_glob),
so a bare pattern matches the basename at any depth, a pattern with /
matches the namespace-relative path, and a leading / anchors. Plain
fnmatch would diverge on all three: its * crosses /, so /*.py
would widen to every depth instead of anchoring to the top level.