From 39df7b5db66633b20cd2a9c265880caa1823853b Mon Sep 17 00:00:00 2001 From: Yunxiao Xu Date: Wed, 1 Apr 2026 18:57:49 -0700 Subject: [PATCH] Fix mypy type errors in render.py by annotating renderable variable --- src/rp/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rp/render.py b/src/rp/render.py index aa4a83d..d2e3037 100644 --- a/src/rp/render.py +++ b/src/rp/render.py @@ -4,7 +4,7 @@ from __future__ import annotations from dataclasses import dataclass -from rich.console import Console +from rich.console import Console, RenderableType from rich.json import JSON as RichJSON from rich.markdown import Markdown from rich.syntax import Syntax @@ -36,6 +36,7 @@ def render( use_pager = sys.stdout.isatty() + renderable: RenderableType if file_type in _MARKDOWN_TYPES: renderable = Markdown(content) elif file_type in _JSON_TYPES: