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

chore: remove unnecessary quotes in type annotations #920

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

epenet
Copy link
Contributor

@epenet epenet commented Nov 12, 2024

Description

SSIA, based on https://docs.astral.sh/ruff/rules/quoted-annotation/

Related Issues

Checklist

  • This PR has sufficient documentation.
  • This PR has sufficient test coverage.
  • This PR title satisfies semantic convention.

Additional Comments

No additional comments.

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #920   +/-   ##
=======================================
  Coverage   97.74%   97.74%           
=======================================
  Files          21       21           
  Lines        1596     1596           
=======================================
  Hits         1560     1560           
  Misses         36       36           

🚨 Try these New Features:

@epenet epenet mentioned this pull request Nov 12, 2024
6 tasks
@@ -295,8 +295,8 @@ def _assert(self, data: "SerializableData") -> bool:
snapshot_name = self.extension.get_snapshot_name(
test_location=self.test_location, index=self.index
)
snapshot_data: Optional["SerializedData"] = None
serialized_data: Optional["SerializedData"] = None
snapshot_data: Optional[SerializedData] = None
Copy link
Collaborator

Choose a reason for hiding this comment

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

@epenet Does this require from __future__ import annotations? or this is fine in py3.8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is fine as it is.
Fully compatible with 3.8

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(And all 3.8 tests passed to show it)

@noahnu noahnu merged commit 7b97d2a into syrupy-project:main Nov 13, 2024
15 of 17 checks passed
@epenet epenet deleted the 20241112-0828 branch November 13, 2024 22:08
@noahnu
Copy link
Collaborator

noahnu commented Nov 23, 2024

🎉 This PR is included in version 4.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants