Skip to content

Work-around pytest 8.3.0 renaming _TracebackStyle #159

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

Merged
merged 2 commits into from
Dec 21, 2024

Conversation

mjpieters
Copy link
Contributor

Pytest replaced the private name _pytest._code.code._TracebackStyle with _pytest._code.code.TracebackStyle in 8.3.0, a change that can't easily be accounted for when running static type checks.

Replace the imported type with one that's hard-coded locally.

Fixes #158

Pytest replaced the private name `_pytest._code.code._TracebackStyle`
with `_pytest._code.code.TracebackStyle` in 8.3.0, a change that can't
easily be accounted for when running static type checks.

Replace the imported type with one that's hard-coded locally.
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks!

@sobolevn sobolevn merged commit 2a45fec into typeddjango:master Dec 21, 2024
21 checks passed
@mjpieters mjpieters deleted the mj/fix-mypy-failure branch December 21, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

static typecheck error in pytest-mypy-plugins pipeline: pytest 8.3.0 renamed _TracebackStyle to TracebackStyle
2 participants