-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ 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:
|
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
🎉 This PR is included in version 4.8.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
SSIA, based on https://docs.astral.sh/ruff/rules/quoted-annotation/
Related Issues
Checklist
Additional Comments
No additional comments.