SNOW-1304211: Pylance throws errors when using copy_options
with copy_into_location
method
#1363
Labels
copy_options
with copy_into_location
method
#1363
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
Python 3.11.8
What operating system and processor architecture are you using?
linux 64
What are the component versions in the environment (
pip freeze
)?snowflake-snowpark-python==1.11.1
What did you do?
Let's say you have a custom class like the one at the bottom (a minimal example to check for errors).
When linting this file (Pylance v2024.4.1) errors appear.
What did you expect to see?
The type of copy_options in the copy_into_location method is Optional[str], but the type of copy_options in the CopyIntoLocationNode class used in the copy_into_location method is Dict[str, Any]. Consequently, to align the types, the copy_options in the copy_into_location method should be of type Optional[Any].
Can you set logging to DEBUG and collect the logs?
This is not a RunTime error, so I think this will not give us any extra information.
The text was updated successfully, but these errors were encountered: