Skip to content

block: tolerate non-dict first_letter_style/first_line_style#2765

Closed
SAY-5 wants to merge 1 commit into
Kozea:mainfrom
SAY-5:fix/first-letter-style-bool-2717
Closed

block: tolerate non-dict first_letter_style/first_line_style#2765
SAY-5 wants to merge 1 commit into
Kozea:mainfrom
SAY-5:fix/first-letter-style-bool-2717

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 2, 2026

Closes #2717. |= raises TypeError if a caller passes a bool; treat anything non-dict as no inherited style.

Closes Kozea#2717. `|=` raises if a caller passes False/True; treat anything non-dict as 'no inherited style'.
@grewn0uille
Copy link
Copy Markdown
Member

Hi,

Thanks for your pull request! This is more an issue about what is provided to the function, so we should rather avoid to have a dict here.

The issue was already addressed by #2740. So I’ll close this PR.

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.

TypeError: unsupported operand type(s) for |=: 'bool' and 'dict'

2 participants