MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / wrapper

Function wrapper

camel/loaders/panda_reader.py:38–46  ·  view source on GitHub ↗
(
            self, file_path: str, *args: Any, **kwargs: Dict[str, Any]
        )

Source from the content-addressed store, hash-verified

36 def decorator(func: Callable):
37 @wraps(func)
38 def wrapper(
39 self, file_path: str, *args: Any, **kwargs: Dict[str, Any]
40 ) -> "DataFrame":
41 suffix = Path(file_path).suffix
42 if suffix not in valid_suffixs:
43 raise ValueError(
44 f"Only {', '.join(valid_suffixs)} files are supported"
45 )
46 return func(self, file_path, *args, **kwargs)
47
48 return wrapper
49

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected