diff --git a/foamlib/_files/_files.py b/foamlib/_files/_files.py index b866bd9..88e3f78 100644 --- a/foamlib/_files/_files.py +++ b/foamlib/_files/_files.py @@ -105,13 +105,9 @@ def create(self, *, exist_ok: bool = False, parents: bool = False) -> Self: """ Create the file. - Parameters - ---------- - exist_ok : bool, optional - If False (the default), raise a FileExistsError if the file already exists. - If True, do nothing if the file already exists. - parents : bool, optional - If True, also create parent directories as needed. + :param exist_ok: If False, raise a FileExistsError if the file already exists. + + :param parents: If True, also create parent directories as needed. """ if self.path.exists(): if not exist_ok: