ide-best-practices
ide-best-practices copied to clipboard
Avoid a warning in covid_trends_job.py
Using a PEP 484 "# type: ignore" annotation
I do wonder if we really want to use that global, though? Is that a best practice? In the past I used something like spark = SparkSession.builder.getOrCreate()
I would rather replace this line with
spark = SparkSession.builder.getOrCreate() since this is the refactored code that should follow best practices.
https://github.com/databricks/ide-best-practices/pull/9