-
Notifications
You must be signed in to change notification settings - Fork 0
🧱 [infra] Added ty and upgraded dependencies #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,7 +157,7 @@ def Display( | |
| table.add_column( | ||
| col_name, | ||
| footer or "", | ||
| justify=justify, | ||
| justify=justify, # ty: ignore[invalid-argument-type] | ||
| ) | ||
|
|
||
| for item in items: | ||
|
|
@@ -258,5 +258,5 @@ def _YieldConsole( | |
| return | ||
|
|
||
| with done_manager_or_console.YieldStdout() as stdout_stream: | ||
| console = Console(file=stdout_stream.stream) | ||
| console = Console(file=stdout_stream.stream) # ty: ignore[invalid-argument-type] | ||
| yield console | ||
|
Comment on lines
260
to
262
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
# ty: ignore[invalid-argument-type]onTable.add_column(..., justify=...)bypasses type checking for this call. A more robust fix is to typejustifyas Rich’s expected literal type (orcastit to that type) sotycan still validate the rest of the call.