Skip to content
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

Remove crashtest #382

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Remove crashtest #382

merged 1 commit into from
Nov 17, 2023

Conversation

Secrus
Copy link
Member

@Secrus Secrus commented Nov 4, 2023

crashtest introduced a burden of additional dependency, that wasn't maintained. This PR moves some Exception inspection logic from crashtest into cleo and removes crashtest as a dependency.

@Secrus Secrus force-pushed the remove-crashtest branch 2 times, most recently from bef5ac1 to ae2ef78 Compare November 5, 2023 17:49
@Secrus Secrus marked this pull request as ready for review November 5, 2023 17:49
Copy link
Member

@trag1c trag1c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how strongly you feel about this but I'd personally change cls.__name__ to type(cls), makes the dunder chaos a bit more bearable :v

src/cleo/ui/exception_trace/component.py Outdated Show resolved Hide resolved
src/cleo/ui/exception_trace/frame.py Outdated Show resolved Hide resolved
src/cleo/ui/exception_trace/frame.py Outdated Show resolved Hide resolved
src/cleo/ui/exception_trace/frame.py Outdated Show resolved Hide resolved
src/cleo/ui/exception_trace/frame.py Outdated Show resolved Hide resolved
src/cleo/ui/exception_trace/inspector.py Outdated Show resolved Hide resolved
@Secrus Secrus merged commit 2c277d2 into python-poetry:main Nov 17, 2023
17 checks passed
@Secrus Secrus deleted the remove-crashtest branch November 17, 2023 10:46
return self._file_content

def __hash__(self) -> int:
return reduce(operator.xor, map(hash, self._key))
Copy link
Contributor

@dimbleby dimbleby Nov 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply return hash(self._key) was what I had intended, apologies if not clear

this in general is a better hash eg hash((1, 2)) is not the same as hash((2, 1)); and also it is just simpler

@Secrus Secrus restored the remove-crashtest branch October 3, 2024 12:31
@Secrus Secrus mentioned this pull request Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants