Skip to content

Instantly share code, notes, and snippets.

@asears
Last active October 12, 2024 21:28
Show Gist options
  • Save asears/1b516913a805f3b8bdf2c404602edd31 to your computer and use it in GitHub Desktop.
Save asears/1b516913a805f3b8bdf2c404602edd31 to your computer and use it in GitHub Desktop.
Type Checking Only Import
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pyspark.sql import DataFrame
def to_json_conversion(self: "DataFrame") -> "RDDAdapter":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment