Skip to content

feat(qol): add useful __repr__ to WorkspaceRunContext#4022

Open
sohamwaghe wants to merge 3 commits into
dlt-hub:develfrom
sohamwaghe:feat/3941-add-repr-workspaceruncontext
Open

feat(qol): add useful __repr__ to WorkspaceRunContext#4022
sohamwaghe wants to merge 3 commits into
dlt-hub:develfrom
sohamwaghe:feat/3941-add-repr-workspaceruncontext

Conversation

@sohamwaghe

@sohamwaghe sohamwaghe commented Jun 4, 2026

Copy link
Copy Markdown

Added __repr__ method to WorkspaceRunContext to make the object less opaque when inspecting in a REPL or debugger.

Output now shows:
`<WorkspaceRunContext(run_dir='/absolute/path/to/project', profile='dev')>

Related Issues

Additional Context

  • Added __repr__ to dlt/_workspace/_workspace_context.py using the codebase's existing simple_repr helper
  • Added test in tests/workspace/test_workspace_context.py covering default and non-default profiles
  • Follows Python convention of using < > to indicate the object cannot be re-instantiated from its repr

@sohamwaghe

Copy link
Copy Markdown
Author

The test_load_arrow_vary_schema[arrow-table] failure looks unrelated to this PR — it's a DuckDB decimal casting error when loading parquet (22.1405 overflows DECIMAL(5,4)), happening in test_arrow_sources.py. My changes only touch _workspace/_workspace_context.py and tests/workspace/test_workspace_context.py. The matrix summary failure is just a downstream effect of that. Happy to rerun if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(qol): add useful __repr__ to WorkspaceRunContext

1 participant