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

Fix _ez_unpack return type #1095

Closed

Conversation

kozlovsky
Copy link
Contributor

Fixes #1094

This PR:

  • Fixes result type of EZPackOverlay._ez_unpack_auth and EZPackOverlay._ez_unpack_noauth;
  • Fixes the definition of DataclassPayload type.

@kozlovsky kozlovsky force-pushed the fix/ez_unpack_return_types branch from 366fd18 to eb6bfa4 Compare May 6, 2022 14:39
# See https://stackoverflow.com/questions/54668000/type-hint-for-an-instance-of-a-non-specific-dataclass
__dataclass_fields__: dict
else:
DataclassPayload = type
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As it turns out, protocols were added to typing in Python 3.8, so it is necessary to add this workaround for Python 3.7

@kozlovsky kozlovsky requested a review from qstokkink May 6, 2022 14:42
@kozlovsky kozlovsky marked this pull request as ready for review May 6, 2022 15:02
@qstokkink qstokkink added the priority: none Duplicate, wont address, on hold or unreproducible label May 18, 2022
@qstokkink
Copy link
Collaborator

This PR has been open for 13 weeks without activity and it lacks sufficient motivation for its proposed changes. I will close this PR until the (equally inactive) discussion in #1094 has been concluded.

@qstokkink qstokkink closed this Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: none Duplicate, wont address, on hold or unreproducible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Underspecified result type of EZPackOverlay._ez_unpack_auth and EZPackOverlay._ez_unpack_noauth
2 participants