Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to None for dagster_sling_translator in sling_assets (#21340)
## Summary & Motivation Right now the `dagster_sling_translator` argument of `sling_assets` defaults to `DagsterSlingTranslator()`. Per https://docs.python-guide.org/writing/gotchas/ a single object instance will be shared across *all* invocations of that function. Even if technically the current object is immutable or has no state this is Python and people monkeypatch all the time. Additionally, if someone changes these objects in the future and aren't aware of this usage, it will introduce subtle bugs later. We should instead do the safe, obvious thing and create a new instance on every invocation. ## How I Tested These Changes BK
- Loading branch information