Replies: 1 comment
|
It may coincidentally work with other renderables, but the signature is telling you that the author (me) never intended it to--so it could break in a future release. That said, it may have been a mistake to make it that strict. You could open an issue to suggest the type is relaxed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Been working with the rich library alongside cmd2, I wanted to make a separator that contained a title for a Table while restricting its width to the Table's width. I initially achieved this with a Text object inside of a Rule object that I passed in to the Table's title. Is there any issue with passing a Rule in for the title field since that field accepts Union[str, Text]?
All reactions