python-poetry / python-poetry/tomlkit

Add indent control for multi-line `Array`

Open
#290 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
850
Forks
162
Avg merge
13m
Merged PRs (30d)
2

Description

More or less a control for an indent: str when Array._multiline == True.

The Trivia.indent doesn't seem be the right place because it's in reference to the parent container?
Also, only when it's a multiline array does this indent exist; I'm thinking add an Array._multiline_indent: str ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Array implementation and the existing handling of Array._multiline, then compare how Trivia.indent is applied to parent containers. The issue is done when multiline arrays support a distinct indent control without changing single-line arrays or parent indentation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.