-
Notifications
You must be signed in to change notification settings - Fork 304
Ruff depth limit #391
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
base: main
Are you sure you want to change the base?
Ruff depth limit #391
Changes from all commits
57fb4ef
24fd47b
e699ad6
8d06e98
30be6aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -840,7 +840,10 @@ class MontySyntaxError(MontyError): | |
| Inherits exception(), __str__() from MontyError. | ||
| """ | ||
|
|
||
| def display(self, format: Literal['type-msg', 'msg'] = 'msg') -> str: | ||
| def traceback(self) -> list[Frame]: | ||
| """Returns the Monty traceback as a list of Frame objects.""" | ||
|
|
||
| def display(self, format: Literal['traceback', 'type-msg', 'msg'] = 'traceback') -> str: | ||
| """Returns formatted exception string. | ||
|
|
||
| Args: | ||
|
Comment on lines
847
to
849
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MontySyntaxError.display() docstring missing documentation for 'traceback' format (now the default) The (Refers to lines 847-852) Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
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.
🚩 MontySyntaxError.display() pyi docstring incomplete for new 'traceback' format
The type stub at
crates/monty-python/python/pydantic_monty/_monty.pyi:846correctly lists'traceback'in theLiteraltype and as the default, but the docstring at lines 849-851 only documents'type-msg'and'msg'formats — it doesn't document'traceback'. Compare withMontyRuntimeError.display()at line 891-897 which documents all three formats. This is a documentation gap in the public API stub.(Refers to lines 846-852)
Was this helpful? React with 👍 or 👎 to provide feedback.