Fix Globber.resolve_pattern string type check