Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add indent control for multi-line `Array`

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

Nobody has claimed this yet.

Assessment

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

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.

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 ?

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

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.

More from python-poetry/tomlkit

All issues in python-poetry/tomlkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.