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

Guard use of dict[str, str] for Python 3.8 #844

Closed
wants to merge 1 commit into from
Closed

Conversation

stroxler
Copy link
Contributor

@stroxler stroxler commented May 1, 2024

Summary:
Github tests caught another too-new-to-use feature in our Python code:
you cannot directly subscript builtin containers like dict until 3.9.

In this case since there's no runtime need for the annotation, we can
use from __future__ import annotations to work around the problem.

Differential Revision: D56821982

Summary:
Github tests caught another too-new-to-use feature in our Python code:
you cannot directly subscript builtin containers like `dict` until 3.9.

In this case since there's no runtime need for the annotation, we can
use `from __future__ import annotations` to work around the problem.

Differential Revision: D56821982
@stroxler
Copy link
Contributor Author

The fix was landed, not sure why the PR didn't auto-close

@stroxler stroxler closed this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants