diff --git a/src/snowflake/snowpark/files.py b/src/snowflake/snowpark/files.py index 4ed237ae88b..7916d4cd5be 100644 --- a/src/snowflake/snowpark/files.py +++ b/src/snowflake/snowpark/files.py @@ -126,7 +126,7 @@ def isatty(self) -> None: @classmethod @private_preview(version="1.22.1") - def open_new_result(cls, mode: str = "w") -> _SnowflakeFile: + def open_new_result(cls, mode: str = "w") -> SnowflakeFile: """ Returns a :class:`~snowflake.snowpark.file.SnowflakeFile`. In UDF and Stored Procedures, the object works like a Python IOBase object and as a wrapper for an IO stream of remote files. The IO Stream is to support the file operations defined in this class.