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

Add back support for type hints in PyCharm for snapshot fixture #8955

Merged
merged 3 commits into from Aug 23, 2023

Conversation

dominikschubert
Copy link
Member

Motivation

It seems we lost the type hinting in PyCharm for the snapshot fixture in our tests, which makes especially adding new tests much less intuitive.

Changes

  • Introduce new _snapshot_session fixture
  • Add (technically redundant) snapshot fixture so that PyCharm picks up the correct typing.

Coming up

-ext will receive a similar fixture that will expose the typed _snapshot_session and thus allow us to have types again.

@dominikschubert dominikschubert self-assigned this Aug 22, 2023
@dominikschubert dominikschubert added the semver: patch Non-breaking changes which can be included in patch releases label Aug 22, 2023
@coveralls
Copy link

Coverage Status

coverage: 80.845% (+0.006%) from 80.839% when pulling ae9c20e on snapshot-fixture-typing into ed5f065 on master.

Copy link
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

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

Thanks for tackling this, @dominikschubert 🙏
LGTM 👍

@dominikschubert dominikschubert merged commit ac0fdef into master Aug 23, 2023
22 of 24 checks passed
@dominikschubert dominikschubert deleted the snapshot-fixture-typing branch August 23, 2023 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants