Skip to content

Fix crash with urwid >= 4.0.5 - #1475

Merged
WhyNotHugo merged 1 commit into
masterfrom
urwid-4.0.5
Jul 27, 2026
Merged

Fix crash with urwid >= 4.0.5#1475
WhyNotHugo merged 1 commit into
masterfrom
urwid-4.0.5

Conversation

@WhyNotHugo

Copy link
Copy Markdown
Member

Reproducible when a config includes:

[view]
frame = width

Basically it's a diamond problem:

  • WidgetDecoration.init() calls super().init()
  • This resolves to WidgetWrap.init()
  • WidgetWrap.init() calls WidgetWrap.init() without any arguments.

The MRO here is:

FocusLineBoxWidth -> WidgetDecoration -> WidgetWrap -> … -> Widget

Fixes: #1473

Reproducible when a config includes:

    [view]
    frame = width

Basically it's a diamond problem:

- WidgetDecoration.__init__() calls super().__init__()
- This resolves to WidgetWrap.__init__()
- WidgetWrap.__init__() calls WidgetWrap.__init__() without any
  arguments.

The MRO here is:

    FocusLineBoxWidth -> WidgetDecoration -> WidgetWrap -> … -> Widget

Fixes: #1473
@WhyNotHugo
WhyNotHugo merged commit 6748429 into master Jul 27, 2026
6 of 7 checks passed
@WhyNotHugo
WhyNotHugo deleted the urwid-4.0.5 branch July 27, 2026 22:07
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.

python-urwid 4.0.8-1 breaks khal interactive

1 participant