From 2645e821b36f12bd5afa239a9d1309ce36431111 Mon Sep 17 00:00:00 2001 From: Ted Conbeer Date: Fri, 16 Aug 2024 19:18:12 +0000 Subject: [PATCH] fix: pass validate_on as a set, not list, for goto input --- CHANGELOG.md | 2 ++ src/textual_textarea/goto_input.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a221342..559bc10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- Fixes a TypeError raised by Textual >= v0.76 from the goto input validator. + ## [0.14.1] - 2024-08-15 - Fixes a bug where uncommenting a line using the `toggle_comment` action would leave behind a space in languages with comment markers that are longer than one character ([tconbeer/harlequin#616](https://github.com/tconbeer/harlequin/issues/616)). diff --git a/src/textual_textarea/goto_input.py b/src/textual_textarea/goto_input.py index 9c77a7d..42df5cf 100644 --- a/src/textual_textarea/goto_input.py +++ b/src/textual_textarea/goto_input.py @@ -54,7 +54,7 @@ def __init__( validators=GotoLineValidator( max_line_number=max_line_number, min_line_number=min_line_number ), - validate_on=["changed"], + validate_on={"changed"}, id=id, classes=classes, )