This commit is contained in:
Will McGugan
2023-01-13 10:44:13 +00:00
parent 027635b978
commit 8f0f0d8c12
2 changed files with 65 additions and 31 deletions

View File

@@ -159,7 +159,7 @@ async def test_reactive_with_callable_default():
Textual will call it in order to retrieve the default value."""
called_with_app = None
def set_called(app: App) -> int:
def set_called() -> int:
nonlocal called_with_app
called_with_app = app
return OLD_VALUE