Skip to content

Update Stellar ETL Airflow to use case statements #644

@hunterpack

Description

@hunterpack

There are instances where we can change our code to use features in Python 3.11 that will simplify the code and adhere to best practices. We can take a look at the repo to see anywhere the code can be condensed/improved.

nit: Just a suggestion but you make this into a case statement cause I think we're on like python 3.11 or something

match command_type:
  case "seed":
    # do stuff
  case "build":
    # do other stuff
  case _:
    # throw some error

This change is optional. You can update it in this PR or create a github issue for it and throw it into our backlog

Originally posted by @chowbao in #643 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions