rich icon indicating copy to clipboard operation
rich copied to clipboard

Fix locals_overlow typo in Traceback.__init__

Open bysiber opened this issue 9 months ago • 2 comments

The Traceback.__init__ parameter locals_overlow is misspelled — it should be locals_overflow.

This means constructing a Traceback directly with the correct keyword locals_overflow=... raises TypeError: unexpected keyword argument. The only way to pass it currently is through from_exception, which maps the correct name to the typo internally.

Fixed the parameter name in __init__, the assignment in the body, and the keyword argument in from_exception.

bysiber avatar Feb 20 '26 01:02 bysiber

Please read the AI policy before submitting further PRs: https://github.com/Textualize/rich/blob/master/AI_POLICY.md

You've opened over 100 pull requests in other projects in just the last day. Please consider the impact of automated PRs on open source projects, and at very least disclose that PRs are entirely AI generated.

TomJGooding avatar Feb 20 '26 17:02 TomJGooding

@TomJGooding I don't know if anyone is listening. I'll give them the benefit of the doubt, just to see if there is a human on the other end.

willmcgugan avatar Feb 20 '26 20:02 willmcgugan